ServiceNow (Flow Designer)

This page contains instructions for the new built-in ServiceNow (Flow Designer) workflow created for integrations using the xMatters app (version 5.5 and above). If this your first time integrating xMatters with ServiceNow, we recommend that you start your integration with this workflow, which comes with more out-of-the-box features that integrate with Flow Designer and allows you to seamlessly connect ServiceNow to your xMatters toolchain.

If you want to maintain your existing integration, see xMatters for ServiceNow (Direct Integration).

ServiceNow (Flow Designer) is an xMatters workflow that uses the xMatters for ServiceNow app (versions 5.5 and above) to become the voice and interface of an automation engine. When ServiceNow detects something that requires attention, xMatters places phone calls, sends emails, or notifies your mobile app. This integration incorporates ServiceNow records into your xMatters toolchain, letting you add steps to your workflow as part of a ServiceNow record.

Integration version – features and updates

Version 5.8 of the xMatters application within ServiceNow is certified with the following releases: Washington DC, Vancouver, Utah, Tokyo, San Diego, and Rome.

Read through the new features and updates for this version and see a list of previous versions here.

How it works

When ServiceNow sends a signal, it sends a JSON-formatted webhook to xMatters. A ServiceNow 5.x trigger in xMatters parses the webhook and initiates a flow. The webhook includes essential alert data you can use to enrich notifications to users or when building automated tasks.

Install the workflow

The following instructions describe how to install the workflow through the xMatters one-click installation process.

  1. Go to the Workflow Templates page and click the ServiceNow (Flow Designer) tile.
  2. On the Set up the workflow tab, give the workflow a name (this must be unique in your instance) and add an optional description.
    • You can edit these later, if needed.

  3. Click Next to set up the connection.
  4. Choose the authentication method (we recommend Basic Authentication or API Key). Trigger URLs for Engage with xMatters and Incident Alerts are generated based on the selected authentication method.
  5. Copy the trigger URLs — you’ll use these to configure the webhooks in ServiceNow.
    • By default, the workflow notifies the user or group assigned to the ServiceNow incident.

  6. Click Open Workflow to view and customize the workflow, or Close to return to the Workflows page.

Configure ServiceNow to send requests to the trigger URL

To have ServiceNow send alerts to the flow trigger, you need to configure a webhook and set it to use the trigger URL.

Prepare ServiceNow

There are a couple of steps to get ServiceNow ready to integrate with xMatters — first and foremost, installing the xMatters app. However, you also need to create a user in ServiceNow to make requests, and assign the user specific roles installed with the application.

Configure xMatters

Now that you've completed the first part of the configuration in ServiceNow, it's time to configure xMatters.

Complete the xMatters Configuration pages

The xMatters application installs four configuration pages into ServiceNow:

  • Common Configuration: Configures the connection, credentials, and logging level for the communication between xMatters and ServiceNow.
  • Incident Notifications: Enables or disables the incident notification features, and configures when and how ServiceNow sends an incident to xMatters for notification.
  • Engage with xMatters: Enables or disables the Engage with xMatters action in the ServiceNow user interface, sets the connection parameters for the feature, and sets the maximum number of results to return when searching for people or groups to target.
  • Data Sync: Configures the user and group seeding, and the data synchronization between xMatters and ServiceNow.

You need to update most of the settings on these pages with information specific to your xMatters deployment. See the following sections for more information on the settings in the Common Configuration, Incident Notifications, Engage with xMatters, and Data Sync tabs.

You're ready to use the webhook to trigger automated flows, including steps such as sending updates and initiating incidents, though we always recommend testing before putting things into use.

Send payloads to xMatters using the latest payload format

To maintain compatibility with existing integrations, the payload to trigger an alert is sent using a legacy format. For new installations, we recommend you change this to use the latest payload format. Besides being more future proof, it means you can also use the information in the xMatters REST API documentation to customize your payload if needed.

How to use the workflow

When a condition you've set fires, it sends a signal to xMatters, which creates an alert and notifies the workflow recipients.

Activate the clone cleanup script

If you intend to clone your ServiceNow production environment, make sure the clone cleanup script for xMatters is set to Active before beginning the cloning operation.

The purpose of the clone cleanup script is to prevent the new clone instance from deleting user and group records in xMatters. If the clone cleanup script is not enabled when the clone is created, data sync activity on the clone can delete data from the xMatters production instance. To prevent this, the clone cleanup script removes user and password information so the clone cannot access the xMatters instance.

  1. Navigate to System Clone > Clone Definition > Cleanup Scripts.
  2. Click on the xMatters Clone script to open it.
  3. Select the Active check box.
    • If you can't select the check box, make sure you're in the xMatters application.
  4. Click Update.

The cleanup script runs automatically after the cloning process finishes. The ServiceNow admin can verify that the script ran correctly by checking the “x_xma_xmatters.xmatters.api.user” and password properties, and the “x_xma_xmatters.xmatters.reb.user” and password properties immediately after the clone is created; all of these values should be blank.

If you want the cloned environment to interact with a non-production xMatters instance, you need to configure the integration in the clone.

Next Steps

Now that you've installed the workflow, you can use it as-is, or customize it to suit your needs better. Here are some examples of things you can add to the workflow to customize it: