Create a ServiceNow web trigger to monitor events on a ServiceNow instance. The trigger listens for the configured event and starts the automation when the event occurs.

Configure the ServiceNow web trigger to listen for When new record is inserted event in the Incident table of the ServiceNow instance. When a new record is added to the Incident table, the trigger initiates the Message Box action.

Prerequisites

Ensure that the prerequisites mentioned in Prerequisites section are met.

Procedure

  1. On the left pane, click Automation.
  2. Click Create > Task Bot.
    The Create Task Bot wizard is displayed.
  3. Enter an appropriate name for the bot in the Name field.
    All the bots are stored in \Bots folder by default.
  4. Optional: You can add a description for the bot in the Description field.
  5. Optional: You can use the Choose button to save the bot in a different folder.
  6. Click Create & Edit.
    The bot is created and the Edit Task Bot is displayed.
  7. Click Triggers > ServiceNow, and then double-click or drag Web trigger to add the web trigger to Triggers section.
  8. Enter the ServiceNow instance URL in the ServiceNow URL field.
  9. Enter incident in Event Type (table) field as this trigger is configured to monitor the Incident table of the ServiceNow instance.
  10. Select When new record is inserted option from the Listen to event drop-down.
  11. Optional: Enter the search filter from the ServiceNow Incident table in Filter criteria (optional) field.
    Right-click on the filters displayed on the Incident table in ServiceNow, and then click Copy query to copy the filter. Paste the copied filter in the Filter criteria field.
  12. Optional: Enter the roles defined in the ServiceNow instance in the Filter criteria by Role (optional).
  13. Click Pick to choose the preconfigured OAuth connection from the Pick an OAuth connection modal.
    Only Control Room managed OAuth connections are supported. See Use OAuth connection for more information.
  14. Optional: Add variables to the trigger in the Response option. For more information about variables, see Variables overview.
    Note: If you use an existing variable for response, ensure that Use as input check box is enabled for the variable.
  15. Click Actions > Message Box, and then double-click or drag Message Box action to add it to the Actions section.
  16. Configure the Message Box action accordingly.
    For more information on configuring the Message Box action, see Using the Message box action.
  17. Click Save to save the automation.
  18. Click Run > Run with triggers to start the automation.
    The trigger listens for When new record is inserted event in the Incidents table of the monitored ServiceNow instance. When a new incident is created, the trigger starts the Message Box action. The automation displays a message box with the configured text.