Integrating inbound events

This tutorial illustrates how to create a notification from an inbound JSON request.

Before you begin

Role required: admin

About this task

When complete, you will be able to:

  • Send a JSON request to the imp_notification web service import set with the JSON processor
  • Create a new import set in the imp_notification table in the instance using data from the JSON request

The following example steps assume you have your own demonstration instance.

Procedure

  1. Activate the JSON Web Service plugin.
  2. Install the RESTClient Firefox plugin.
  3. Open the RESTClient.
  4. Create the following JSON request.
    • Method: POST
    • URL: http://<instance name>.service-now.com/imp_notification.do?JSON
    • Headers: Authorization: Basic
    • Body:
      {"sysparm_action":"insert","message":"this is an event","uuid":"abc"}
    The REST JSON request
  5. Click Send.
  6. Navigate to Response > Response Body (Raw).
  7. Verify that the instance sends back a response with a sys_id.
    The REST response
  8. Login to your development instance.
  9. In Navigation filter, enter imp_notification.list.
  10. Verify that the import set table has an event matching your JSON request.
    REST import set table