Changing Approver breaks the Flow

mpmacconnell
Tera Guru

I am converting our custom Change workflows over to Flow Designer. In the process I have it where is asks for the Manager approval in the flow. We have a requirement that allows requesters to update the Manager field and this triggers an update of the approver on the Approval task. The business rule successfully updates the Approver, but when this happens the Flow is stuck waiting on the approval task. The task is approved as shown:

find_real_file.png

 

But the flow is still waiting, I am guessing on the original approver:

find_real_file.png

 

Anyone have any ideas how to solve this scenario?

1 ACCEPTED SOLUTION

mpmacconnell
Tera Guru

Actually, figured out that if I used the Create Record instead of the Ask for Approval it works. Just need to add the Wait for Condition after that.

find_real_file.png

View solution in original post

4 REPLIES 4

Michael Fry1
Kilo Patron

You'd have to restart the FLOW to get the new value. Once the FLOW triggers, it's waiting for a specific value. If you change it, the FLOW doesn't know. I'd make the Manager field read-only in States likes Assess and beyond. Then the user has to use the Revert to New functionality to be able to change the field.

mpmacconnell
Tera Guru

Actually, figured out that if I used the Create Record instead of the Ask for Approval it works. Just need to add the Wait for Condition after that.

find_real_file.png

bvlo
Tera Expert

Additional info for others who might come across this 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0957747

Patrick71
Tera Contributor

I figured out a better solution: add an or condition for Manual User(s). My flow was able to proceed after the new approver approved the record. 

Patrick71_0-1713473528347.png