Integrate inbound events
This example 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
Activate the JSON Web Service plugin.
Install the RESTClient Firefox plugin.
Open the RESTClient.
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"}
Image omitted: RESTRequest.png
The REST JSON request
The REST JSON request
Select Send.
Navigate to Response > Response Body (Raw).
Verify that the instance sends back a response with a
sys_id.
Image omitted: RESTResponse.png
The REST response
The REST response
Log in to your development instance.
In Navigation filter, enter
imp_notification.list.Verify that the import set table has an event matching your JSON request.
Image omitted: rest-import-set-table.png
Import set table showing an event record that matches the JSON request data
Import set table showing an event record that matches the JSON request data
Parent Topic:References for Inbound email