Managing and debugging webhooks
You can use a query to see if your event was triggered.
Create a query to manage and debug your webhooks by selecting New Query and selecting the WebhookData Record type. Add fields to the query to check on the status of the payload that you expect to be delivered to the webhook.
Add fields to the Query Presentation box by using the lower set of arrows. If you save the query into the Personal Queries folder and then click Run, you will see one payload entry in the list that is waiting to be sent to the webhook server. The payload was created when we used a Submit action. The other three columns will be blank because the REST APi server has not yet picked up the payload.
- Browse to the HCL Compass installation directory.
- Go inside the traxiem-rest-server-distrobution.
- In the bin folder, open an administor command propmt.
- Run the start.bat file to start the REST API server.
- Running the initial webhook configuration audit
- Immediately upon startup, the REST API server checks for any webhook configurations so that it can keep track of them and poll them for payloads to deliver.
- Audit webhook configurations STARTED
- The check for webhook configurations has started.
- Test Webhook: Webhookconfig is ENABLED
- A test webhook has been found.
- Audit webhook configurations ENDED
- The REST API server is done checking for webhook configurations.
In the web client, you can refresh the query and see a list of results. The REST API server successfully delivered the payload to the webhook and deleted the payload from HCL Compass.
The WebhookData query can also be used to manage unsuccessful webhooks. If the delivery of the payload fails, the listing is updated with information, including Response Text, Response Code, and Retry Counter. The payload will attempt to deliver 10 times.
Webhooks configurations can also be modified. View a list of webhook configurations by creating a query on the WebhookConfig record type. Select New Query and then select the WebhookConfig record type.
Add fields the query in the Query Presentation box. Save and then run the query.