cancel
Showing results for 
Search instead for 
Did you mean: 

Flow from PowerApps: Getting the Variable Names Correct

In PowerApps, you can create a flow associated with your App. This a very powerful and easy way to extend the functionality of your PowerApp.

 

When you create your flow, it gives you the ability to send in inputs from your PowerApp, but it also tries to choose the name for you. So here is a simple tick to get your name of your variables right.

 

Example:

 

Create a blank PowerApp

blankpowerapp.PNG

On the menu, click Action and Flows

flows.png

Now, Create a new flow

createflow.PNG

In our flow, add a simple Compose action

compose.PNG

 Now for the inputs, choose Ask in PowerApps

ask.png

 The input has been named "Compose_Inputs", which is probably not what you want.

componsename.PNG

So, heres the trick:

 

In the expression box, type "triggerBody()['customname'] - where custom name is the name you would like to assign  to the input.

customname.PNG

Save the worflow, and exit it. Then when you edit it again, you will see it will collect the input from PowerApps with the name you have given it

namedone.PNG

Comments

I'm looking forward for more integration between PowerApps and Flow

Meet Our Blog Authors
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Cambridge UK Power Platform User Group Leader, Technical evangelist and speaker. Always says yes to coffee! #LetsGetCoffee
  • Passionate #Programmer #SharePoint #SPFx #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor
  • I am building business processes and applications that are easy for users' to stick to, so they can follow and understand them. In overall I transform processes to be more reliable and effortless. I am a proud co-organizer of SharePoint Saturday Warsaw and active community member, blogger and international speaker.