Calling power automate flow from canvas app.
Hello Guys,
In our previous blog we have seen how we can pass parameters to canvas application from model driven app. Today we will see how we can call power automate flow from canvas app.
Do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends.
We will be working with the same canvas app.
As you can see we have already displayed canvas app. Now we will create one power automate flow which will return contacts based on account GUID.
Open the canvas app and click on power automate flow icon as shown below:
Click on create new flow and select create a flow.
Specify details as show above. Now add a new step and initialize a variable as shown below:
Click on Ask in PowerApps. This will generate a variable which we can use from canvas app.
We will use this AccountID which will be passed from canvas app to power automate flow.
Now add a new step which will be List. Here we will be retrieving contacts based on GUID of account.
Now add a new step for selecting columns of the contacts as show below:
Now we will send this JSON data back to canvas app. Add below step
So our flow is ready. Now we will call this flow in our canvas app.
Open the canvas app. Add one textbox control and Do the following changes.
Select Main Screen and set the formula as shown below:
Now select the text box and specify the formula as shown below:
So our app is ready. Now we will open one record and check whether we are getting json data in textbox or not.
As you can see json data is available.
Hope it helps...
Comments
Post a Comment