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

Multiple Approval Paths Depending on where in the approval chain the manager is.

I'm building a purchase approval flow.  To establish the path of the flow, I'm initally collecting the creator's manager (MGR) from O365.  For the next level, I collect the Manager's manager (DIV MGR).  And for the final step, I collect the Manager's Manager's manager (EXEC).

 

For a straight approval from Empl A to his MGR who approves and the flow sends another approval to the DIV MGR, who approves it and the flow sends another approval to EXEC...  it's not an issue.  The logic problem I'm running into is when it is the DIV MGR that is submitting the purchase request.  He becomes the Creator and the creator's manager is the EXEC.    In that scenario the approval goes to his manager (EXEC) who approves it and because the flow says to now send an approval to the manager's manager (which is now null), the flow fails.

 

Suggestions on how the logic should be so that if the DIV MGR submits an approval and his manager (EXEC) approves it, the flow ends successfully.

 

Thanks.

1 REPLY 1
v-lin-msft
Level 10

Re: Multiple Approval Paths Depending on where in the approval chain the manager is.

Hi @blalor1,

 

Based on your description, if the application is submitted directly by DIV MGR, you do not need to send approval request to MGR, right?

You could add a judgment condition before the whole flow starts to send approve, to determine whether the applicant is DIV MGR:

-If yes, directly send approve to DIV MGR;

-If not, continue to send three level approval request.

The following is a logical reference:

 

Annotation 2019-06-20 112717.png

 

I hope it can help you. If you still have questions, please contact us.

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,450)