In our last 3 posts, we checked 3 different methods of triggering Power automate, Below are the links
In today's post, we will check 4th method of triggering Power automate flow using WebHook in the plugin Registration tool
As we know we can use WebHooks to creating external handlers for server events, like azure service bus or any other web service.
in this post
- we will create power automate with action as ” when an HTTP request is received”
- Get HTTP Post URL, Will break the URL as URL and parameters
- Register a webhook using the plugin registration tool
- Register a step on the update of the account name.
- Adding the “Response” action in power automate to see exception in CRM using webhook
Check1: Create Power automate with Action "When a HTTP request is recived"
- Create Instant flow and select action “When a HTTP request is Received” with Method as post and Payload generic
- Once Saved we will get the URL , copy the URL and Break it down as below to specify HTTP query parameter in webhook.
https://prod-25.centralindia.logic.azure.com:443/workflows/73a854555aaa5fad8f867ac168/triggers/manual/paths/invoke api-version=2016-06-01 sp=/triggers/manual/run sv=1.0 sig=Sxfp4x5V51JDEeSYuf4mvxTXlGR2xTxn3WeQiab00yY
Check2: Register WebHook to trigger power atomate flow and Register an Step for acccount update
- Login to plugin Registration tool and register new WebHook with Below config and Http Post URL.
- Now Register new Step on Update of Account entity, field = account name.
- All Done, If we want to add some condition and throw an exception for any condition, we can do so by adding “response ” in Power automate
It would be a kind of realtime exception even we know the flow is meant to be working in async.