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
- Click on Add an input from the PowerApps trigger as shown below:

- Choose the type of user input:
Here we can see that we have 6 types of inputs or parameters that can be passed to power automate. In our case, we are going to calculate the date difference, so we will use the date parameters.

- Let’s add two date parameters for calculating the date difference as shown below

- Now we will initialize a variable named as varDateDifference and type as integer.
- Then to calculate the date difference, we will set the same variable will below formula
div(sub(ticks(EndDate),ticks(StartDate)),864000000000)








Join the conversation! Your thoughts help the community grow.