loop in flow

AlbusPhoenix
Tera Contributor

In a flow, approval should be sent to requested for's manager and after it is approved next approval should be sent to Requested for's Manager's Manager and this process should continue until there is no manager.

I can't get the logic to achieve this.Can someone please help me out!

2 REPLIES 2

Cheikh Ahmadou
Tera Guru

Why don't you just retrieve all managers first, then create approval for each one at same time but with a wait for condition?

Tried doing that already however that required scripting. 

Though I already found a solution. Flow variables could be used for this.  I created a "do the following until" flow logic and kept updating the flow variables after each approval until the manager was empty or was caller himself .

 

This was an OOB solution I came up with