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

multiple level Delegation condition in Flow

Hello All,

 

In my approval flow, I need to check if approver has delegated his approval right to anyone (if he/she is on leave).

we have a delegate list in sharepoint where approver add that entry (delegatefrom, delegateto, startdate and enddate)

For Example:  

Approver is 'abc' then for given time period it will be delegated to 'xyz'.

 

I am able to achieve this one with basic filtering capability. My main concern is what if 'xyz' is also on leave and delegated it to 'pqr' and so on. 

 

How can I achieve this for all the possibilities? any "do while" loop or "do until" loop? How can I use those in flow expression?

 

Thanks, 

Pratik

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @Anonymous ,

 

It seems that you can implement similar operations directly in Apply to each.

 

  • Create a column of Yes/No type in the List to record whether the status of Approver is leave on. If it is leave on, it is Yes.
  • Use Boolean variable in Flow to record whether the state of the Approver currently traversed can delegate approval right. The default is false.

Here is to use Apply to each will default to traverse all items in order according to item ID in the list, if you do not set Concurrency Control.

 

Image reference:

23.PNG

Hope it helps.

 

Best Regards,

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

View solution in original post

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @Anonymous ,

 

It seems that you can implement similar operations directly in Apply to each.

 

  • Create a column of Yes/No type in the List to record whether the status of Approver is leave on. If it is leave on, it is Yes.
  • Use Boolean variable in Flow to record whether the state of the Approver currently traversed can delegate approval right. The default is false.

Here is to use Apply to each will default to traverse all items in order according to item ID in the list, if you do not set Concurrency Control.

 

Image reference:

23.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
lavint
Helper I
Helper I

Hi, 

 

How did you implement the delegate functionality? currently I am using Approval activity with timeout.. but it's not enough.. Admin of the site wants to have the right to delegate anytime like the SP2013 environment.

 

 

""we have a delegate list in sharepoint where approver add that entry (delegatefrom, delegateto, startdate and enddate)"""

 

Thanks

L

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,157)