Calling Power Automate from a Power App

Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp


In the next post, we will explain how to call Power Automate from a power application. The combination of both technologies enables development with a range of complex operations.

For this, we have created the following tutorial, that by collecting the name and language of the user through a Power App, displays the confirmation message for an order generated by Power Automate. Thus, at the same time to see the call, we can see how Power Automate is able to send response parameters to Power App.

Power Automate Development

A flow is created whose trigger is a Power App call.

We add the following variables:

  • Potato: is initialized with the name obtained from the Power application.
  • Idiom: initializes in the language obtained from the Power App call.
  • Message: this variable will contain the order confirmation. Therefore, we will not add anything as a value when initializing this variable.

To initialize a variable with the parameter value obtained from the Power App, we place the cursor in the field “Value” of the variable to initialize and click on Ctrl + space. Once this is done, the following panel will appear.

Then, you can see how the Power App tag is put as part of its name, the name of the action where you clicked “Ask in PowerApps”.

Depending on the language received, we add the order confirmation in one language or another, including name received. In conclusion, we add the action “Respond to a PowerApp or Flow”, including the variables to send to the Power App. In this circumstance, “Message” containing the order confirmation message.

Once saved, we have our Power Automate ready to be called from the Power application.

Development of energy applications

We create an energy application with a screen, containing the name, language (drop-down menu containing all available languages) and the message fields. And a button whose name is “Send request”.

We click on the button, and on the property “OnSelect” we add the newly created Power Automate. To do this, we add the cursor to the property “OnSelect” button and click “Action” Y “Power Automate”. Then, a panel will appear with all available flows.

By clicking on the respective cursor, code like the following will be added: ‘flow_name.Run (”. Once this is done, we just have to add the corresponding parameters.

To get the parameter values ​​returned by Power Automate, we add “.” at the end of the function “Run” and a list with all the available parameters will be displayed to return.

In the example, we are passing the values ​​from the Name textbox and the Language dropdown menu. And we are storing in the variable “varMessage” the value of the variable “message” returned by the PowerAutomate.