Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

power automate approval flow lookup

(0) ShareShare
ReportReport
Posted on by 87

I have created a workflow that will trigger an approval/reject email to be sent when a new item is created in a sharepoint list. What i need to add to this flow is the ability to email a person based on variables. 

 

I want the person emailed to be the manager of the "employee name" that is in the new row created on the list. Can anyone help me with how to accomplish this? Below is a screenshot of current flow.

 

LipoLoHu_0-1680193490153.png

 

  • Verified answer
    srApps Profile Picture
    306 on at
    Re: power automate approval flow lookup

    Sure. Based on your screenshot it would look like this. 'Search for users' dynamic content would be your 'employee name'. Even if it only returns one user, it will be an array. For the 'Get manager' I use the 'First' expression to get the first email address in the 'Search for users' array:

    first(outputs('Search_for_users_(V2)')?['body/value'])?['userPrincipalName']
    Then for the assigned to use 'Mail' from the 'Get manager' dynamic content.

    srApps_0-1680205203828.png

     

  • LH-23071616-0 Profile Picture
    87 on at
    Re: power automate approval flow lookup

    Got it! Could you send me a screen shot of what the branching for that would look like?

  • srApps Profile Picture
    306 on at
    Re: power automate approval flow lookup

    Ah. There is another action called 'Search for users (V2)' that you could put the name in to find their email, then their manager with that action. This would be prone to errors though, like multiple employees with the same display names or the name being spelled incorrectly in the form. These would result in either multiple users returned from the search or none. I would recommend trying to go back to making it a person field to not need to worry about those things.

  • LH-23071616-0 Profile Picture
    87 on at
    Re: power automate approval flow lookup

    It’s not a person column. I have a power app form that gets filled out and pushes to this list, and I couldn’t get the column as a person to populate correctly so I changed it to just text.  

    is there another way to accomplish this?

  • srApps Profile Picture
    306 on at
    Re: power automate approval flow lookup

    Is the 'employee name' a person column? If so you can use the dynamic content to get that person's email address and use it in the 'Get manager (V2)' action. Then assign the approval to the email from the get manager dynamic content.

    srApps_0-1680203872485.png

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492