# ServiceNow Integration

[<mark style="color:blue;">ServiceNow</mark>](https://www.servicenow.com/) transforms your business with digital IT workflows by modernizing your operations to optimize productivity, cost, and resilience with a single platform for IT.

Route detailed ticket alerts from ServiceNow to the right users in Squadcast.

### How to integrate ServiceNow with Squadcast

#### In Squadcast: Using ServiceNow as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](/files/ej4AI9zpOyFu5NZJCbwC)

2\. Select **ServiceNow.** Copy the displayed **Webhook URL** to [configure](#in-servicenow-create-a-squadcast-webhook) it within **ServiceNow**. Finish by clicking **Add Alert Source** -> **Done.**

![](/files/2mf5q72sLVshrM2UA26z)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

#### In ServiceNow: Create a Squadcast Webhook

**(1)** Download the [servicenow.js](https://github.com/SquadcastHub/squadcast-servicenow-integration/blob/master/servicenow.js) file

**(2)** Navigate to the filter box and search for **Business Rules**. Click on **System Definition > Business Rules**

![](/files/YHN3vhNnLIlrOPs0RYrF)

**(3)** Click on **New**

![](/files/6Z38pHiM1Qwy8n24M71o)

**(4)** Provide any suitable **Name**, select **Incident** in the drop-down and check the **Advanced** option

![](/files/GY8awSwrlk3NUcNyJn7y)

**(5)** Navigate to **when to run** and fill the form as shown in the screenshot below

![](/files/0RjsTHsdofkQozktGm2A)

**(6)** Paste the previously downloaded and copied snippet into the **Script** text box

**(7)** Replace <**Squadcast Webhook URL**> with the previously copied Webhook URL and click on **Submit**

![](/files/3FbThecbs51Oa3j0owJP)

{% hint style="info" %}
**Important:**

Understanding how the integration works:

* Trigger a new incident:

For `state: 1` in the ServiceNow ticket payload, an incident is triggered in Squadcast.

* Resolve an existing incident:

For `state: 6`, `state: 7` and `state: 8`, incidents are resolved in Squadcast (pertaining to auto-resolution of an existing, *open* incident)

Please ensure that the right `status` is being sent within the payload for the tickets into Squadcast. If values other than the ones mentioned above are sent for `status`, the integration will not work as expected.

In case of any queries, please feel free to reach out to our [Support team](mailto:support@squadcast.com).
{% endhint %}

That is it, you are now good to go! Whenever a ticket is created with the `New` status, an incident will be created in Squadcast for it. When the ticket is moved to `Resolved`, `Closed` or `Deleted` status in ServiceNow, the corresponding incident will automatically get resolved in Squadcast as well.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*


---

# 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://support.squadcast.com/integrations/alert-source-integrations-native/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.
