Skip to main content

Overview

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.

Available Workflow Actions

Create a ServiceNow Incident

This action creates a new record in the ServiceNow Incident table (e.g. 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 Zendesk 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).
Document Image

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.
Document Image

Common Custom Field Examples

Work Notes (Internal)

Work notes are 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.
Document Image

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.