Skip to main content
The ServiceNow integration connects Rootly with your ServiceNow instance bidirectionally. Rootly can create and update ServiceNow incidents through workflow actions, and ServiceNow can send incident events to Rootly as alerts using Business Rules. With the ServiceNow integration, you can:
  • Automatically create ServiceNow incidents from Rootly incidents
  • Update ServiceNow incident priority, state, and custom fields as incidents evolve
  • Receive ServiceNow incident events as Rootly alerts to trigger on-call paging
  • Sync ServiceNow CMDB business applications to Rootly services

Before You Begin

Before setting up the integration, make sure you have:
  • A Rootly account with admin permission to manage integrations
  • A ServiceNow instance with admin access
  • Permission to create OAuth Application Registry entries in ServiceNow
Rootly recommends installing with a dedicated ServiceNow service account so the integration does not break if an individual user leaves your organization.

Installation

Open the ServiceNow integration in Rootly

Log into Rootly as an Admin and navigate to Configurations > Integrations > ServiceNow. Click Setup.ServiceNow setup modal in Rootly

Create an OAuth Application in ServiceNow

Log into your ServiceNow instance as an Admin and navigate to System OAuth > Application Registry.ServiceNow System OAuth menuClick New, then select Create an OAuth API endpoint for external clients.Selecting the OAuth API endpoint type in ServiceNowFill in the following fields and click Submit:ServiceNow OAuth application registration form

Copy credentials from ServiceNow to Rootly

Open the application you just created in ServiceNow and copy the Client ID and Client Secret.ServiceNow client ID and client secret fields
When copying the Client Secret, you may need to unmask it by clicking the lock icon. Masked values sometimes do not copy correctly in ServiceNow.
Paste the Client ID, Client Secret, and your ServiceNow instance URL into the Rootly setup modal and click Connect.Rootly ServiceNow connection form

Authorize Rootly in ServiceNow

You will be redirected to ServiceNow to authorize the connection. Click Allow.ServiceNow OAuth authorization prompt
After authorization, the Create a ServiceNow Incident and Update a ServiceNow Incident workflow actions are available in your Genius workflows.

Ingest ServiceNow Events

To receive ServiceNow incident events as Rootly alerts, configure a Business Rule in ServiceNow to send events to Rootly’s webhook endpoint.

Get your webhook URL and secret from Rootly

In Rootly, open the ServiceNow integration settings. Copy the Webhook URL and Secret values shown on the integration page.

Create a Business Rule in ServiceNow

In ServiceNow, navigate to System Definition > Business Rules.
There are multiple Business Rules pages in ServiceNow. Make sure you select the one under System Definition.
Click New and fill in:ServiceNow Business Rule advanced tabNavigate to the Advanced tab and replace the script with the following:
Replace <insert webhook public URL> and <secret> with the values from the Rootly ServiceNow integration page.ServiceNow webhook configurationClick Submit.

How Alerts Are Mapped

Each ServiceNow event received creates a Rootly alert with the following fields: Alert labels:

Using ServiceNow as an Alert Source

If your org uses Rootly On-Call, ServiceNow alerts can be used to page on-call users. Once the Business Rule is configured, alerts from ServiceNow will appear in your Rootly alert feed and can trigger on-call notifications through alert workflows.

Workflow Actions

The ServiceNow integration provides workflow actions for creating and updating ServiceNow incidents from Rootly. If you are unfamiliar with how Genius workflows work, visit the Workflows documentation first.

Create a ServiceNow Incident

This action creates a new record in the ServiceNow Incident table (for example, INC0010001) and links it to the Rootly incident. Priority mapping (Auto) Status mapping (Auto) Available states: New (1), In Progress (2), On Hold (3), Resolved (6), Closed (7), Canceled (8).
Acts As User triggers a ServiceNow user lookup by first name, last name, or email. When matched, Rootly sets caller_id, close_code, and close_notes automatically. It only applies when the state is set to Resolved (6).
Create a ServiceNow Incident workflow action configuration form

Update a ServiceNow Incident

This action updates an existing record in the ServiceNow Incident table.
When a Create a ServiceNow Incident action runs, Rootly stores the resulting sys_id and incident number on the incident record. Reference them in subsequent update actions using Liquid variables.
Update a ServiceNow Incident workflow action configuration form

Common Custom Field Examples

Work notes (internal) — visible only to ServiceNow agents, not customers.
Comments (customer-visible)
Major incident
Major incident state changes may require specific ACL permissions in ServiceNow. See the ServiceNow community for details.

Add Configuration Items (CIs) to an Incident

Adding configuration items to a ServiceNow incident requires multiple API calls (one per CI). Use Rootly’s HTTP Client workflow action with the ServiceNow Batch API to consolidate them into a single request.
HTTP Client workflow action configured for the ServiceNow Batch API
Endpoint
Headers
Store your Base64-encoded username:password as a Rootly Secret to keep credentials out of plain-text workflow configurations.
Body Each individual Table API call must have its body Base64-encoded. The following Liquid template dynamically generates one batch entry per service associated with the incident:
To use this template, each ServiceNow CI’s sys_id must be linked to the equivalent Rootly service using the service_now_ci_sys_id field.
Succeed On Status — set to 200. The ServiceNow Batch API returns 200 (not 201) on success.

Uninstall

To remove the ServiceNow integration, navigate to Configuration > Integrations > ServiceNow > Delete.