cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cma2438
Level: Powered On

PowerApps Manager Approval Flow

I am trying to submit a approval flow through PowerApp. the Flow runs fine but its setting up the variables within the PowerApp i am having the issue. 

 

the formula i have set up is ONSELECT : 'Sendapprovalandfollowupviaemail-3'.Run(Office365Users.Manager(MyUserId),MyUserId)

 

But obviously that doesnt work. would would be the first variable to email the manager? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: PowerApps Manager Approval Flow

Hi @cma2438,

 

First, please tell us what parameters that you get from PowerApps to Flow. Are these 2 parameters in To(manager email) and Subject(MyUserId) in action "Send an email"? 

 

If so, notice that to get the user's manager's email address, you need to use:

Office365Users.Manager(TexInput1.Text).Mail

 

In TextInput1 control, type or paste an email address of a user in your organization. For example, type in yourName@yourCompany.com.

 

By MyUserId, if you mean the user Id of current user, please use:

Office365Users.MyProfile().Id

And of course, manager's email could then be:

Office365Users.Manager(Office365Users.MyProfile().Mail).Mail

 

Complete formula should be:

'Sendapprovalandfollowupviaemail-3'.Run(Office365Users.Manager(Office365Users.MyProfile().Mail).Mail,Office365Users.MyProfile().Id)

 

Regards,

Mona 

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

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: PowerApps Manager Approval Flow

Hi @cma2438,

 

First, please tell us what parameters that you get from PowerApps to Flow. Are these 2 parameters in To(manager email) and Subject(MyUserId) in action "Send an email"? 

 

If so, notice that to get the user's manager's email address, you need to use:

Office365Users.Manager(TexInput1.Text).Mail

 

In TextInput1 control, type or paste an email address of a user in your organization. For example, type in yourName@yourCompany.com.

 

By MyUserId, if you mean the user Id of current user, please use:

Office365Users.MyProfile().Id

And of course, manager's email could then be:

Office365Users.Manager(Office365Users.MyProfile().Mail).Mail

 

Complete formula should be:

'Sendapprovalandfollowupviaemail-3'.Run(Office365Users.Manager(Office365Users.MyProfile().Mail).Mail,Office365Users.MyProfile().Id)

 

Regards,

Mona 

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

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,666)