To create a webhook in Dynamics 365, perform the following steps:
1Open the Plug-in Registration Tool and log in to your organization.
2Click CREATE NEW CONNECTION on the Plugin Registration Tool page.
The following image shows the CREATE NEW CONNECTION button on the Plugin Registration Tool page:
3Go to Register and select Register New Web Hook.
The following image shows the Register New Web Hook option on the Register menu:
4Enter the webhook name, Service URL in the Endpoint URL field, and the authentication method in the Authentication field.
You must specify some key string.
The following image shows the WebHook Registration dialog box:
5Go to WebHook and select Register New Step.
The following image shows the Register New Step option:
6In the Update Existing Step page, enter the value as Create in the Message field, account in the Primary Entity field, and select Asynchronous in the Execution Mode field.
The following image shows the Update Existing Step page:
7In the Select Attributes dialog box, clear the Salesforce ID custom field to prevent the webhook from triggering when this field is updated.
The following image shows the Salesforce ID custom field attribute in the Select Attributes dialog box:
Note: Currently, preventing the webhook from triggering when the Salesforce ID custom field is updated is not supported in Dynamics 365. The process ends when it receives a webhook with data indicating that this field has been updated.
8Follow steps 5, 6, and 7, that is, Register New Step steps for registering the update account entity and create or update contact entity.