Skip to main content
Skip table of contents

Creating an incident in ServiceNow

This documentation references external sources. Nexthink does not have control over the accuracy of third-party documentation, nor any external updates or changes that might create inconsistencies with the information presented on this page. Please report any errors or inconsistencies to Nexthink Support.

This document demonstrates how to configure Nexthink Webhook to detect alerts and events and transmit them to ServiceNow to create an incident.

In ServiceNow

Verify that the proper roles of the user are in place in order to define credentials in Nexthink.

  1. Go into User Administration and select Users.

  2. Verify that the user has been assigned the following roles:

    • rest_api_explorer

    • itil

Once the user has been set up in ServiceNow, gather the proper Resource and Payload information necessary for the Webhook configuration page in Nexthink. Rely on the Rest API Explorer option within ServiceNow:

  1. Go into System Web Services, then REST and select Rest API Explorer.

  2. Verify that you have selected the following values:

    • Namespace = now

    • API Name = Table API

    • API Version = latest

  3. Click on the option Create a record (POST)

  4. In the Prepare request section, for tableName select Incident from the drop-down list:

  5. Prepare request

    Take information from the Create Record section and apply it to the Method and Resource fields on the Webhook configuration page in Nexthink.

  6. Create a record

    For this particular example:

    • Method: POST

  7. Resource: api/now/table/incident
    Replace {tableName} with the previously selected table

  8. To define Payload on the Webhook configuration page in Nexthink, go to the Request Body section and select the Builder tab located at the bottom of the page:

  9. Builder tab

    Add different fields to build the request. For instance, if you want to create an incident with the caller, impact, urgency, business service, configuration item, short description and description, use the drop-down menu to select the proper fields from ServiceNow and then input text to assign values to them:

    Assign values to fields
  10. If you want to add more fields, use the plus button to create as many new rows as necessary and fill in the information as described in the previous step. Below is an example of the final result:

     "short_description":"This is an issue create by a Nexthink Alert",
     "description":"Nexthink Alert {{}} has been triggered",
     "caller_id":"Nexthink Integration"

In Nexthink

Webhook Credential

For the Instance URL, use the Create Record URL from ServiceNow until the first slash, for example:


Choose the Basic option from the Authentication type drop-down list that utilizes the username and password you previously created in ServiceNow.


When creating a new Webhook, fill in the Method and Resource fields with the information provided in Create Record in ServiceNow, for example:

Method: POST
Resource: api/now/table/incident

For the Payload field, copy the value created in the Request Body in ServiceNow. No formatting is needed.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.