How to go back to the previous step in the flow?

ArpitaVK
Tera Expert

I am working on a flow where a request is sent to 3 officers one after the another to approve it. But if any of the officer declines the request, it would go back to the step where the request was sent first. So, it will be a looping till all the officer approves the request. I am aware that it may create infinite looping, but at the end all officers need to approve the request. In the flow, is there any way that we can go back to the previous step if the officer rejects the request?

 

Officer approval.jpg

3 REPLIES 3

Ahmmed Ali
Mega Sage

Hello @ArpitaVK 

 

You can use the "Do the following until" activity with asking for approvals until the RITM approved (approval field is approved) as shown below. 

 

AhmmedAli_0-1687241751142.png

 

 

Note: I did not test it and not sure if same approval activity will trigger new approval or not, and also if after each the RITM approval field is automatically setting to approved state, then you could use some other field to update after all three approvals and apply condition based on that field in "until" condition.

 

If this does not work, then you need to use workflow for this.

 

Thanks,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

@Ahmmed Ali Thank you for your quick reply, but I am already using 'Do the following until' condition. If the officer does not take any action on the request (neither rejects not approves) it will wait for 4 hours and send him/her reminder notification. This will continue till the officer approves the request; for every officer. Also, I checked that we cannot use another 'Do the following until' condition inside another 'Do the following until' condition.

Hello @ArpitaVK 

 

I think you can try adding the approvals in one subflow and calling that subflow in main flow within  'Do the following until' condition.

 

Though, I would suggest to use workflow for the use case as it will be easier to configure the functionality in workflow than a flow.

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali