Group approvals are getting skipped when we are cancelling the flow through Business rule flow API

Priya164
Tera Contributor

My Requirement is to trigger approvals to different groups parallely when request is submitted. Once it is sent for refer back by any approver all approvals which are in requested state should get cancelled and retrigger approvals once again. For this we are cancelling the flow through business rule using flow API and flow designer will run but group approvals are getting skipped. 

Could someone please help me with the issue I am facing.

 

Thank you!

 

5 REPLIES 5

Priya164
Tera Contributor

@Ankur Bawiskar  Request you to help me on this issue

Mark Manders
Mega Patron

Create a subflow for the approvals, so you can just stay within the flow and move on after someone does approve. The fact that you cancel the flow, means that you aren't doing anything with the current approval records and because there is no logic anymore, ServiceNow defaults to the 'if there is no one to approve, approve'.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Priya164 

As per my understanding, this is out-of-the-box (OOTB) behavior: when an approval is rejected, the change request moves to a new state, and all existing approvals are marked as canceled.

When you restart the approval process, the approvals are added again. However, to be frank, this behavior can be inconsistent—sometimes it works as expected, sometimes it doesn't.

Did you try handling this using a subflow and keeping all approval logic outside the main flow? That might offer more control and consistency.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Priya164
Tera Contributor

Some approvals are sequential and some are parallel, Cannot create subflow to this requirement