# ServiceNow

PlexTrac offers an integration with ServiceNow's ITSM and GRC platform modules to allow red and blue teams to collaborate without switching between workflow tools.&#x20;

ServiceNow GRC (Governance, Risk, and Compliance) is a module of the ServiceNow platform that helps organizations manage their governance, risk, and compliance processes. ServiceNow ITSM (IT Service Management) is a module of the ServiceNow platform that enables organizations to manage their IT services and operations.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FwXw2HAnMvDRtvDvp4M51%2Fservice.jpg?alt=media&#x26;token=def8ccd4-baf6-45ea-9813-f1d1ee3c380f" alt=""><figcaption></figcaption></figure></div>

## Overview

Data flows from PlexTrac to ServiceNow when a finding is used to create a ticket but only from ServiceNow to PlexTrac after setup. The synchronization between PlexTrac and ServiceNow occurs every 30 minutes.&#x20;

{% hint style="info" %}
Only one ServiceNow integration can exist per PlexTrac instance.&#x20;
{% endhint %}

## Creating a Ticket

<mark style="background-color:yellow;">Step 1:</mark> On the row of the finding used to create a ticket, click the three dots under the "Actions" column and click **Link ServiceNow ticket**.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FpX1CjrHpuuEibgN4Fvag%2Fimage.png?alt=media&#x26;token=8b2367fb-ee8e-440e-8a53-a5feeddb70ae" alt=""><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 2:</mark> A modal appears. Select the ServiceNow module, the ticket type, and the priority.&#x20;

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F54WDR33rvUw789NweIw6%2Fimage.png?alt=media&#x26;token=9429c416-9198-4712-912b-068d0ea515e7" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
For the GRC module, an additional option exists to define the ticket issue rating.\
![](https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2Fz6JXNQtfYoizkmEt8I4P%2Fimage.png?alt=media\&token=55d12b7b-5953-48bb-90ad-a3446b509a26)
{% endhint %}

<mark style="background-color:yellow;">Step 3:</mark> Click **Save**.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FBJnwM0uyANVyFWyidRyy%2Fimage.png?alt=media&#x26;token=8c298073-f13e-4f79-bd35-46f397a2120c" alt=""><figcaption></figcaption></figure></div>

The finding now shows the ServiceNow ticket ID and a hyperlink to access the ticket on ServiceNow.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F1yaOlLwNBLtCitUwSBjN%2Fimage.png?alt=media&#x26;token=b7b3c7b9-b934-401c-96a9-1a5b9d2e8011" alt=""><figcaption></figcaption></figure></div>

### Field Mappings

When a PlexTrac finding is used to create a ticket in ServiceNow, it defaults to a status of `New` with the following information populated:

<table><thead><tr><th>PlexTrac</th><th width="252.33333333333331" align="center">Direction</th><th>ServiceNow</th></tr></thead><tbody><tr><td>Description</td><td align="center">--></td><td>Description</td></tr><tr><td>Recommendations</td><td align="center">--></td><td>Description</td></tr><tr><td>References</td><td align="center">--></td><td>Description</td></tr><tr><td>Affected Assets</td><td align="center">--></td><td>Description</td></tr></tbody></table>

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FQk9Pw3u46kG7cQ8QqwsB%2Fimage.png?alt=media&#x26;token=9dc270ef-a50b-4cc6-b274-2c1bb63bf598" alt=""><figcaption></figcaption></figure></div>

When the ticket is created, the priority and issue rating values are stored within ServiceNow.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2Fv7onrN0SZWYwru4D6KWr%2Fimage.png?alt=media&#x26;token=b1006f38-deac-4b96-a9a9-3c6dc0162383" alt=""><figcaption></figcaption></figure></div>

## Existing Ticket Updates

After the ticket is created in ServiceNow, that ticket can only be modified from ServiceNow.&#x20;

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2Fe4N1pNSIz8HnfZfjRBVa%2Fimage.png?alt=media&#x26;token=cb87eb6e-330e-4dd7-b7d6-5663fbf42d2f" alt=""><figcaption></figcaption></figure></div>

The following fields are then sent from ServiceNow to PlexTrac:

<table><thead><tr><th>ServiceNow</th><th width="195" align="center">Direction</th><th>PlexTrac</th></tr></thead><tbody><tr><td>Work Notes</td><td align="center">--></td><td>Status Tracker</td></tr><tr><td>Status</td><td align="center">--></td><td>Status</td></tr></tbody></table>

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F1HkJpk6F3U1YIt5atlaW%2Fimage.png?alt=media&#x26;token=605c324d-13e7-4c82-81d5-833190f954b2" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
When a remediation ticket is created in ServiceNow, the finding status in PlexTrac remains "Open" or "In Progress" until closed.
{% endhint %}

## Status Mappings

Below are the mappings of status from ServiceNow to PlexTrac for the various scenarios:

### &#x20;**For a task and ticket:**

<table><thead><tr><th>ServiceNow Status</th><th width="196.33333333333331" align="center">Direction</th><th>PlexTrac Status</th></tr></thead><tbody><tr><td>Closed Complete</td><td align="center">--></td><td>Closed</td></tr><tr><td>Closed Incomplete</td><td align="center">--></td><td>Closed</td></tr><tr><td>Closed Skipped</td><td align="center">--></td><td>Closed</td></tr></tbody></table>

### **For an incident:**

<table><thead><tr><th width="278">ServiceNow Status</th><th width="199.33333333333331" align="center">Direction</th><th>PlexTrac Status</th></tr></thead><tbody><tr><td>Resolved</td><td align="center">--></td><td>Closed</td></tr><tr><td>Closed</td><td align="center">--></td><td>Closed</td></tr><tr><td>Canceled</td><td align="center">--></td><td>Closed</td></tr></tbody></table>

### **For an sn\_grc\_issue:**

<table><thead><tr><th width="284.3333333333333">ServiceNow Status</th><th width="198" align="center">Direction</th><th>PlexTrac Status</th></tr></thead><tbody><tr><td>Closed Complete</td><td align="center">--></td><td>Closed</td></tr><tr><td>Closed Incomplete</td><td align="center">--></td><td>Closed</td></tr></tbody></table>

{% hint style="warning" %}
If the status value in ServiceNow does not match one of the mapping rules above, the finding will not be updated in PlexTrac when data is synchronized.
{% endhint %}

## Timestamp Logic

Timestamps are captured in two scenarios for this integration:

* When the issue type is created in ServiceNow
* When a work note is created or updated in ServiceNow

### Issue Type Timestamps

The timestamp is derived from the time zone set for the ServiceNow instance. PlexTrac has no influence on this time zone.

**Scenario:** A user in PlexTrac links a finding with ServiceNow. An issue type is created in ServiceNow, and a time stamp is applied to the creation date based on how that ServiceNow instance was configured.

### Work Note Timestamps

The timestamp is derived from when the integration sync last ran, *not* when the work note was created in ServiceNow. It is not a real-time integration timestamp.

**Scenario:** A user in SerivceNow adds a comment to an associated finding, which triggers an integration event with PlexTrac. When that happens, a note is created in PlexTrac with a timestamp of the synchronization event. That timestamp is stored within PlexTrac in UTC time and then presented to the user in their local time when viewed in PlexTrac.&#x20;

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2Fw81SVJa5jB5gtYbA31O6%2Fimage.png?alt=media&#x26;token=77d660f9-a42b-4803-9f8d-c74d5dd748f5" alt="" width="563"><figcaption></figcaption></figure></div>

## Configuring an Integration

<mark style="background-color:yellow;">Step 1</mark>: From the **Admin Dashboard**, click **Integrations** under "Tools & Integrations."

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F5jgGcKyfzJJyR2u1t18w%2Fimage.png?alt=media&#x26;token=f9b37955-0dcd-4878-acfa-7b90d6f354b9" alt=""><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 2</mark>: Click **Connect** within the ServiceNow box.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FWmx04T7ql2NWbXX35uZd%2Fimage.png?alt=media&#x26;token=171c424b-f775-4d8d-9674-31b08d9aecb3" alt=""><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 3:</mark> Click **Configure ServiceNow Integration**.

{% hint style="info" %}
For information on setting up OAuth or generating an API key within ServiceNow, click the links above the button.
{% endhint %}

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F488iGpPE8vC0w2jXDSSY%2Fimage.png?alt=media&#x26;token=f37aeccb-7f13-4457-8dd7-bcb01a59c463" alt=""><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 4:</mark> Select the integration authentication method.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FMQzMGcsriZeilrtoi6NR%2Fimage.png?alt=media&#x26;token=b99ceead-5093-4d31-a218-bad039342d3b" alt=""><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 5:</mark> Enter the information into the provided boxes and click **Test Connection**.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FFi8penk8VkL7uwdnEXTc%2Fimage.png?alt=media&#x26;token=e5140e32-27cf-4675-b1c9-edb2009b6b58" alt=""><figcaption></figcaption></figure></div>

A message will appear to confirm if the connection was successful or not.

<mark style="background-color:yellow;">Step 6:</mark> View the available modules to identify which fields have read and write access. Click **Confirm**.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FrukuribP1nzTdYorgCNW%2Fimage.png?alt=media&#x26;token=a8b3bb5b-c812-4235-b55d-93518537d310" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plextrac.com/plextrac-documentation/product-documentation-1/account-management/account-admin/integrations-and-webhooks/integrations-api/servicenow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
