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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps Manager Appr...
Power Apps
Answered

PowerApps Manager Approval Flow

(0) ShareShare
ReportReport
Posted on by

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? 

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    on at

    Hi @Anonymous,

     

    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 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard