Configure a webhook to subscribe to GovNotify with a ServiceNow callback URL.
Procedure
-
Copy the scripted REST API URL for the GovNotify spoke from
your ServiceNow instance.
-
Navigate to .
-
Open the record, GovNotify Callback.
-
Copy and record the value of Base API path for
later use.
-
Add the callback URL in GovNotify
account.
-
Log in to your GovNotify
account as admin.
-
Navigate to and click Callbacks.
-
On the form, enter these values.
| Field |
Description |
| URL |
Callback URL in this format:
https://<ServiceNow-instance>.com/<base-api-path>. |
| Bearer token |
Token to authenticate the request. Enter a token
as per your requirement. |
-
Click Save.
-
Create client record in your ServiceNow instance.
-
Navigate to .
-
Click New.
-
On the form, fill these values.
| Field |
Description |
| Name |
Name to identify the client record. |
| Authorization Key |
Bearer token you had provided in the GovNotify account. |
-
Click Submit.
-
Create webhook answer record in your ServiceNow
instance.
-
Navigate to .
-
Click New.
-
On the form, fill these values.
| Field |
Description |
| Subflow |
Subflow that needs to be triggered. Select the
default subflow or the subflow you had configured as
per your requirement. |
| Description |
Description of the webhook decision
answer. |
-
Click Submit.
-
Configure the webhook decision policy in your ServiceNow
instance.
-
Navigate to .
-
Open the record, GovNotify Webhook Decision
Policy.
-
In the Decisions tab, open the
Default decision record.
-
For Answer, select the sys_ID of the webhook
answer record you had created.
-
Click Update.
The subflow that is configured in the webhook answer record is
triggered when conditions in the webhook decision policy are
met.