Trigger Power Automate (Flow) Synchronously from CDS

💡 Triggering the flow Synchronously may not be a good idea. So, use it carefully.

💡 The steps mentioned here are not purely “citizen developer”, having said that it also doesn’t involve any coding. One should have knowledge on how to use Plugin Registration tool though.

Again, as I mentioned in my previous blog post here, this may not be an every day requirement but certainly worth to know the possibilities. In my case, I have a special requirement where I can’t lose the initial few seconds of flow trigger via async pipe line (which also means a definite no-no to waiting stage for async pipe line to clear). That’s when this super cool tip of the day helped me, thought it would be useful to blog it in detail steps.

Step 1: Create your flow as a HTTP Trigger flow.

Simply return the response and save the flow so that we can configure the sync trigger.

After saving flow will generate a trigger URL (with key), which essentially is a webhook for us. Copy the URL.

💡 Ensure you are Saving the flow, or else you will not see the URL here.

This is how the sample URL looks like (use a URL Decoder to remove those %s)

Step 2: Open Plugin registration tool, Register new webhook (use Ctrl+W). Set the values as shown below and hit Save.

Name: Some meaningful name

Endpoint URL : The first part of the URL (excluding query string params)

Authentication: HttpQueryString

Add all other query string parameters one by one as shown..

Register a new step on the required entity, in my case – I have used Account entity, Create.

That’s it.. Create an account and you should be able to see the flow triggered at the same time..

This is where the post ideally should end as it is supposed to show case how to trigger the flow synchronously.. however, if you need a bit more help on how to read the information from the triggered data, check the below screenshots…

💡 In my experience, triggering the flow synchronously is not a big deal, but grabbing the required details from the entity is an annoying task.

💡 For easy reference, I have pasted the peek code values of the flow for each step.


"inputs": {
"from": "@triggerBody()?['InputParameters']",
"where": "@equals(item()?['key'], 'Target')"


"inputs": {
"from": "@first(body('FilterForTarget'))?['value/Attributes']",
"select": {
"AttributeName": "@item()?['key']",
"AttributeValue": "@item()?['value']"

"inputs": {
"from": "@body('AllAvailableAttributesInTarget')",
"where": "@equals(item()?['AttributeName'], 'name')"

"inputs": {
"host": {
"connectionName": "shared_teams_1",
"operationId": "PostUserNotification",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_teams"
"parameters": {
"PostNotificationRequest/recipient/to": "",
"PostNotificationRequest/messageBody": "Use this URL –

"PostNotificationRequest/messageTitle": "New High value
customer added - @{first(body('GetNameAttribute'))?['AttributeValue']}"
"authentication": "@parameters('$authentication')"

The full flow

And the result –

Happy FLOWing

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s