cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Approval based on organizational chart & job title

Hi all,

 

I am building an approval flow that starts with a Form, once the Form is submitted it needs to be routed for approval to the submitter's Branch/Dept Exec (varies based on employee), Sr VP (varies based on employee), and the CHRO (same for all). Its fairly easy to set up a manager approval but we have many MANY levels to our org and we don't want every manager approving we only want the levels listed previously. It should be based on the O365 User Profile but I don't see how to get beyond a simple "Get Manager" action to a higher level of authority.

 

Any ideas? Is there a way to get a manager's manager and so on until you find the correct job title? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Approval based on organizational chart & job title

@Anonymous 

You'll need to keep calling Get Manager until you get where you want to go.  This can be done inside of a loop.  For example, use a variable and set the variable to the Job Title inside of the loop.  Loop until the variable equals the title for which you are searching.

Manager loop.jpgManager loop2.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: Approval based on organizational chart & job title

@Anonymous 

You'll need to keep calling Get Manager until you get where you want to go.  This can be done inside of a loop.  For example, use a variable and set the variable to the Job Title inside of the loop.  Loop until the variable equals the title for which you are searching.

Manager loop.jpgManager loop2.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (7,996)