How to integrate with ServiceNow

To connect ServiceNow instance to a message broker, you need to complete a few steps:

  1. Have a listener that listens & displays incoming messages
  2. Inject the listener into a web browser global scope
  3. Send messages to the appropriate channels - usually that is users' sys_ids

Here you can download an update set that includes three items:

update set content

1. Listener, which connects to a message broker server and listens for incoming messages. It is implemented as a very small react application that stored in a style sheet record.

2. UI script that injects the listener into a web browser global scope. In this script we specify a broker server URL — hub11.dev-labs.io . It is a public hub for demo & testing purposes:

ui script

3. Business rule example — it sends an alert to the user when an incident assigned:

business rule example

Once you download and install the update set — it’s done. You’re up and running and listening for messages.

Open another browser tab and impersonate any of itil users. Assign an incident to that user and he/she should immediately receive an in-app alert that the incident assigned:

business rule example

Icon, intent(color), position, timeout and the message itself can be easily customized — just check the business rule example.

Keep in mind, hub11.dev-labs.io is a public hub for demo and testing purposes, so there is no security layer on purpose.

PreviousBasics
NextSalesforce integration