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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / power automate approva...
Power Automate
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

 

Categories:
I have the same question (0)
  • srApps Profile Picture
    306 on at

    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

     

  • LH-23071616-0 Profile Picture
    87 on at

    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

    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

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

  • Verified answer
    srApps Profile Picture
    306 on at

    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

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227

#2
David_MA Profile Picture

David_MA 204 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 177

Last 30 days Overall leaderboard