Hello,
I have a simple PowerApp with a date picker and a submit button which triggers a PowerAutomate flow. In addition to the date selected in the app, I also need the email of the user who pressed the button that triggers the flow as variable in order to set them as a recipient of an email notification that occurs later in the flow.
I am drawing a blank on how to pull the user email so I would really appreciate some ideas on how to get this done.
Regards,
Yordan
Solved! Go to Solution.
Hi @ypetrov123,
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
There is a post with a similar requirement, you could refer to it:
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.
hi @ypetrov123 you need to know how to get the email from the user who press the power automate button?
Proud to be a Flownaut!
Hi @ypetrov123,
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
There is a post with a similar requirement, you could refer to it:
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.
Hi @v-litu-msft,
My current OnSelect expression for the button is:
PA3_Task_Notification_orig2.Run(DatePicker1.SelectedDate);Notify("Notification process started sucessfully !!!");
Could you please tell me where I need to add the User().Email so that I can combine with the expression from above?
Regards,
Yordan
Hi @ypetrov123,
PA3_Task_Notification_orig2.Run(DatePicker1.SelectedDate,User().Email);Notify("Notification process started sucessfully !!!")
Before adding it, remove the Flow then add it back and past the above expression again.
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.
Hi @v-litu-msft,
I get the following error when I paste the expression (after I have removed the connection to the flow and added it again):
Regards,
Yordan
Hi @ypetrov123,
I assume the Flow just only one compose or variable action to accept the parameters get from powerApps, please add one more like this:
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.
User | Count |
---|---|
94 | |
39 | |
24 | |
22 | |
16 |
User | Count |
---|---|
128 | |
49 | |
48 | |
32 | |
24 |