Web-hooks is a lightweight HTTP pattern for connecting Web APIs and services with a publish/subscribe model.
Release with CE App 9.0
With Web-hook we can integrate Customer Engagement data with external service.
Web can be invoked from Plugin step or custom workflow activity.
It can be invoked as Synchronous and Asynchronous.
To secure your endpoint and Authenticate:
- HttpHeader
- WebhookKey
- HttpQueryString
Demo:
Step 1) To create the web hook HTTP endpoint, I have created Power Automate Flow with HTTP Request type trigger.
The HTTP trigger URL generated from this flow is as below:
https://prod-169.westus.logic.azure.com:443/workflows/97d8bb6abcfa4a87b75f0f39adeb32e9/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=1JlyOmHRx9OIRNXTsTT58RGLhITNMJdefruB0V5Q0rE
In this URL %2F means '/'. So, will need to replace it in the URL.
Values obtained from this URL is as below:
End Point UR: https://prod-169.westus.logic.azure.com:443/workflows/97d8bb6abcfa4a87b75f0f39adeb32e9/triggers/manual/paths/invoke
api-version=2016-06-01
sp=/triggers/manual/run
sv=1.0
sig=1JlyOmHRx9OIRNXTsTT58RGLhITNMJdefruB0V5Q0rE
Step 2) Configure the Web in Dynamics 365.
First we need to login into Plugin Registration Tool.
Click on Register -> Register new Web hook
Set the details of Web hook as we have extracted from Power Automate flow HTTP trigger URL.
Step 3) After Web hook is registered, we can registered the Step to trigger the web hook.
I have configured the Plugin Step on Create message on my custom entity 'dnlb_webhook1'.
Step 4) Once the Plugin step is registered, perform the create operation on custom entity 'dnlb_webhook1'. On create, it will trigger the Power Automate Flow
Trigger event will create the details from entity 'dnlb_webhook1' passed to Power Automate Flow.
Good Luck 😎
No comments:
Post a Comment
Write us your comment.