Set up a bi-directional webhook for the Aha! spoke
Configure a webhook to subscribe to events in the Aha! account with a ServiceNow callback URL.
Before you begin
Role required: admin
Create a Token
Create a token that will be embedded in the callback URL to Aha!.
Before you begin
Role required: admin
Procedure
In the navigation filter, enter
token_verification.list.The system displays records in the Token Verifications table.
Select New.
On the form, fill the fields.
Field Description Name Option to provide a unique name to identify the token. For example, Aha! Callback URL token.Description Option to provide a description of the token. Token Option to provide a unique authentication token. This token is encrypted and embedded in the URL. Select Submit.
Create an Aha! Webhook in ServiceNow
Register an Aha! webhook in to notify the app when certain events occur in Aha!.
Before you begin
Role required: admin
Procedure
Navigate to All > Aha! Spoke > Webhook > Webhook Registries.
Select New.
Fill the form.
Field Description Name Option to uniquely identify the record. Path Option to provide the webhook path. Enter api/sn_aha_spoke/aha_webhook.Token Option to specify the token you had created. See Create a Token. Right-click the form header and click Save.
Select Callback URL.
The system displays the webhook callback URL.
Copy and record the webhook callback URL.
Add callback URL to Aha!
Register the webhook callback URL to the Aha! account.
Before you begin
Role required: admin
Procedure
Log in to your Aha! account as an admin.
Navigate to Settings > Account.
Create an activity webhook by clicking + beside Integrations.
Click + Activity webhook in the Activity webhook tile.
On the form, fill these values.
Field Description Hook URL Webhook callback URL you had copied from the ServiceNow instance. Selected Activities Activities or events for which you want to subscribe. Click Add activity.
Set webhook routing policy
Create a webhook routing policy and subflow as per your requirement.
Before you begin
Role required: admin
About this task
The default routing policy in the Aha Webhook Decision Policy module triggers the Process Aha webhooks subflow and notifies the ServiceNow app when certain events occur in Aha!. See Aha! Spoke for information about the fields that the default routing policy and subflows support. To use any other fields in your custom subflow and customize conditions in the routing policy, perform these steps.
Procedure
Navigate to All > Aha! Spoke > Webhook > Webhook Routing Policies.
Select New.
Fill the form.
| Field | Description |
|---|---|
| Label | Unique label to identify the routing policy. |
| Default answer | Option to specify if this is the default answer. The default answer is applicable when the conditions are not met. |
| Condition | Conditions to be met when the required events occur in Aha!. |
| Answer | Subflow that must be triggered when the specified conditions are met.1. Click the lookup icon ( Image omitted: lookup-icon.png 2. Select the required subflow from the Document list. Lookup icon). Note: Ensure that the Table name is |
- Select Submit.