Test webhook registration with request logging site
Before you create or configure a service to consume web hooks, you should test what kind of data the service will receive so that you can know what kind of data you will need to process. For this purpose, you can use one of several request logging sites. For the purpose of this example, we will use Webhook Tester to configure a target for the webhook requests. Use the following steps:
Go to https://webhook.site. In the top right-hand corner you will see a green Copy button.
Use the Copy button to copy the URL. Keep this page open.
Use the plugin registration tool to register a new webhook as described in Register a web hook.
- Use the URL you copied in step 2 as the Endpoint URL.
- Set a name and any authentication properties you want. Webhook Tester will not evaluate these values in the way that an actual site that will process the data should, but you can see how they will be passed through.
Use the plugin registration tool to register a step using the webhook you created in step 4 as described in Register a step for a webhook.
- Make sure to use an event that you can easily perform by editing data in the Common Data Service application, such as updating a contact entity.
Use the Common Data Service app to perform the operation to trigger the event.
After you trigger the event, return to the Webhook Tester page from step 2. You should see that the page has been updated to show the data passed in the request:
Use the Format JSON option to make the JSON returned in the body of the request easier to read.