Set up a webhook
Configure a webhook to subscribe to Zendesk with a ServiceNow callback URL.
Before you begin
Role required: admin
Procedure
Register a Zendesk webhook in ServiceNow to notify ServiceNow when certain events occur in Zendesk.
Log in to your ServiceNow instance as an admin.
Navigate to Zendesk Spoke > Webhook Registries.
Click New.
Provide a name to identify the webhook registry record for Name.
Click the Generate Token related link.
A secret token is generated and displayed. This values is also updated in Token.
Right-click the form header and click Save.
Click Create Webhook.
A confirmation message is displayed that the webhook creation is initiated and value of Webhook ID is populated.
In the Zendesk account, set up event-based rules that run every time a ticket is created or updated.
Log in to the Zendesk account.
Navigate to Zendesk Admin Center.
Navigate to Objects and rules > Business rules > Triggers.
Click Add trigger.
On the form, fill these values.
| Field | Description | |
|---|---|---|
| Trigger name | Name to identify the trigger. | |
| Category | Required event category. Select Tickets. | |
| Conditions | Trigger conditions.Under Meet ANY of the following conditions, provide these conditions: Image omitted: zendesk-trigger-condition.png ActionsTrigger conditions.</td></tr><tr><td> | Select Notify active webhook for Notifications and select the ServiceNow webhook.In JSON body, enter: |
6. Click **Create**.
A confirmation message is displayed that the trigger is created.
Result
The webhook is setup. When a ticket is created or updated in Zendesk, the details are stored in your ServiceNow instance. To access the Zendesk tickets in your ServiceNow instance, navigate to Zendesk Spoke > Webhook > Tickets.