web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Apps - Flow butt...
Power Automate
Answered

Power Apps - Flow button run statement problems

(0) ShareShare
ReportReport
Posted on by 6

Need help with figuring out run parameters for Power App Button.

 

I have a created a simple Power App where the App pulls the user's profile info and says Hello John Doe, please fill out the following form. Once they have completed it, I want them to click a finish button, and it sends an email to their supervisor letting them know the user has done it. Very simple.  My app is working perfectly, just the way I want. I have created a flow that is working perfectly when tested. My problem is that Finish button and the run command to trigger the Flow to send the email.

 

So, what I have is a Power App Button Flow that was created and connected to Microsoft 365 Users and pulling Get My Profile (V2). Then I have conditional statements saying if user's Office location (pulled from Get My Profile(V2) is location A (YES) send an email to Supervisor A saying  Display Name (pulled from Get My Profile(V2) has completed the form. If NO, then conditional statement user's Office location (pulled from Get My Profile(V2) is location B (YES) send an email to Supervisor B. If NO, then conditional statement user's Office location (pulled from Get My Profile(V2) is location C (YES) send an email to Supervisor C.  This works perfectly when tested.

 

But when I go back to link the Flow to the button in Power Apps, I am faced with this PowerAppsbutton.Run(   and cannot figure out any way to make this command work. I have read a ton of information here and all over the web, but none of it applies to my situation. I don't have my users filling out their name and location because they are part of my organization and I already have that data. I am not linking the flow to "Ask in PowerApps". Nothing I read online pertains to my simple little app and simple little Flow PowerApps Button and I can't figure it out. Any help would be very much appreciated!

Categories:
I have the same question (0)
  • jflorence Profile Picture
    6 on at

    app1.PNG

  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @jflorence,

     

    You could add the User().Email into the PowerAppsbutton.Run() expression, then accept the user email on the Power Automate side:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

     

    After get the Email, use Get user profile (V2) action to get the information about this user:

    Annotation 2020-07-28 140215.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • jflorence Profile Picture
    6 on at

    knew it had to be that simple! That worked perfectly! Thank you!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard