Introduction
While working with PowerApps, many times we require a response from Power Automate. In this article, we will learn
- how to call a Power Automate flow from PowerApps
- send parameters to Power Automate from PowerApps
- get response from Power Automate to PowerApps
To call a Power Automate from PowerApps, we will need to create an instant flow. Only instant flows (with trigger as PowerApps) can be called from PowerApps. Let’s first create an instant flow that we will call from PowerApps.
Step 1 - Create an Instant cloud flow
- Navigate to power atomate portal and click on New Flow > Select Instant cloud flow.
- Enter the flow name
- Select the trigger as PowerApps(V2)
- Click on create button
In this example, we will try to calculate the difference between two dates. We will pass the dates from PowerApps to Power Automate as parameters.
Step 2 - How to pass parameters or input to flow from PowerApps
Now our flow is ready to be triggered from PowerApps with parameters.
Step 3 - How to call a Power Automate flow from PowerApps
In this way, we can call a power automate from PowerApps. Now let’s see how to get the response back from the power automate.
Step 4 - Get a response from Power Automate to PowerApps
To response back to PowerApps, we need to use the action called as “Respond to a PowerApps or flow”.
Conclusion
In this way, we have learned how to call a Power Automate flow from PowerAppss, Send parameters to Power Automate from PowerApps, get response from Power Automate to PowerApps and how to calculate date differences.