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!