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

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
Super User
Super User

Re: Approval based on organizational chart & job title

@Filmbella 

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
1 REPLY 1
Super User
Super User

Re: Approval based on organizational chart & job title

@Filmbella 

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 174 members 4,820 guests
Please welcome our newest community members: