Any way to update an approver then restart the Ask for Approval step in a Flow Designer Flow?

Amy V2
Mega Sage

We have a Flow Designer flow that is triggered on creation of a Legal Request. One of the steps in the flow is to Ask for Approval from the Requested For's manager. We have had a few instances where the user's manager has become inactive after the approval record is created. Is there a way for me to restart this specific step in the Flow so that it goes out and gets the new approver and creates an approval task? After that, the rest of the flow needs to progress as usual.

 

What happens to the original approval task - can we delete it?

 

I know there is a FlowAPI I can use and that someone will point me to that documentation. I am still fairly new to Flow Designer and scripting so I'm having a hard time determining from that documentation which pieces I need to be able to do what I need, or if it's even possible. Thank you!

 

Edited to clarify when the flow was triggered.

6 REPLIES 6

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
Do you have the replacement approver user of the deactivated approver?


Thanks and Regards,

Saurabh Gupta

Hi Saurabh - Thank you for your time. Yes, I have already updated the Requested For's users record with his new Manager (manager field). The direct manager is the approver.

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @Amy V2 ,

For such scenarios, you can just write BR on sys_user when changed to active false and replace the approver with new manager.

 

Regards,
Saurabh


Thanks and Regards,

Saurabh Gupta

Amy V2
Mega Sage

Thanks. In my current scenario, the approver user changed to Active = False 2 months ago and we didn't catch that our SCIM data push wasn't updating the manager fields. The flow has already started and created an approval record for the inactive manager. My issue is that I need to update the approval record to show the new manager, and then continue the flow... meaning, the Flow can't be waiting on the original approver to approve, as they no longer work here.