Change the approver in Flow Designer

SamuelTse
Tera Guru

Hi,

I am trying to use Flow Designer for our new project. I ran into a problem where I can't seem to change the approver for the approval record. In the past when we use Workflow, we could just modify the approver and the workflow would be able to capture the decision. How with Flow Designer, once the approval record is created, when I go change the approver from Tom to Jo, Flow Designer is not able to pick up the decision made by Jo. It seems to me Flow Designer is looking for the approval from a special USER, not the the APPROVAL RECORD, like in Workflow. 

May I ask what is the best way to tackle this with Flow Designer? I need to be able to change the approver if the original approver cannot approve it.

Thanks,

Sam

7 REPLIES 7

shivaramumapath
Giga Contributor

Hi Samuel

Not sure if you figured this out, but I ran my flow as system user and manually created a record in the sysapproval_approver table and this allowed me to later change the approver when needed in my logic. On the flow, I check to see if the approval record is approved or rejected and then progress accordingly.

Like you said, when using ask for approval step in the flow accepts approval/rejection only from the exact same approver. If the sys_id of the user does not match, the flow does not take that approval/rejection into account. I wonder how OOB delegate feature works with the flows.

Thanks

Shiva

Hi Shiva,

I dropped that and went back to use workflow so I didn't have a solution for mine.

If I understand you correctly, you didn't use out-of-the-box approval action in your flow. Your logic will work and I assume you have a "Wait For Condition" somewhere in your flow to wait for the approval to come back before the flow proceeds to the next step?

Thanks for the idea. 

Sam

 

Yes, that's right. Hopefully, this will be useful in the future. I hope flow gets some update to allow for the change of approver.

 

Thanks.

Mukesh24
Kilo Guru

It appears that this use case is not support in Flow Designer. I've submitted a entry on Idea portal if you guys are interested in Upvoting it 🙂

 

https://community.servicenow.com/community?id=view_idea&sysparm_idea_id=dd2084e6db43e850f21f5583ca961998&sysparm_idea_table=x_snc_com_ideation_idea&sysparm_module_id=enhancement_requests