Web Service
The entry point for a Process - you would build one endpoint per process. Once connected, messages are guided to the integration based on the unique combination of authentication user & endpoint.
Scripted REST Service
In native ServiceNow, navigate to System Web Services > Scripted Web Services > Scripted REST APIs. Click New.
The Scripted REST Service fields to be configured are as follows:
The top section of your Scripted REST Service record should look like this:
3) Save the record.
Security Fields
Click on the 'Security' tab and configure the fields as follows:
Your 'Security' tab should look like this:
Save the record.
Scripted REST Resource
Navigate to the Resources Related List. Click New.
The 'Scripted REST Resource' fields to be configured are as follows:
*These fields are automatically populated.
The code in the Script field should look like this:
In the RestHelper function, change the value of the Process API name being called to match yours (e.g. 'incident_guide'). By wrapping the code in console, we give context to Activity Log and prevent multiple database updates.
The top section of your Scripted REST Resource should look like this:
Security Fields
Click on the 'Security' tab and configure the fields as follows:
Your 'Security' tab should look like this:
Content Negotiation Fields
Click on the 'Content Negotiation' tab and configure the fields as follows:
Your 'Content Negotiation' tab should look like this:
11) Click Submit.
Update Process Record
With the introduction of the Packager feature, if you want the Web Service to be included in the packaged update set, you will need to update the value of the REST Service field on the Process record with the name of your Scripted REST Service. This will enable the Packager to pick it up.
Whilst still in native ServiceNow, navigate to [ws] Unifi > Configuration > Processes.
Click to open < Your Process >.
12) Update the value in the REST Service field with < Your Scripted REST Service > (as created above).
13) Click Update.
We will now move back to the Unifi Integration Designer window to configure the Integration.
Last updated