Parallel Approvals Issue in Flow Designer – Record Updates After Single Approval

Koti18
Tera Contributor

I am trying to implement parallel approvals in ServiceNow Flow Designer.

  • I have a main flow that calls two subflows.
  • One subflow is created for the group level approval where any one person from the group is enough to approve/reject the approval. Second subflow is created for individual approval where the approval will be triggered to specific user.
  • My requirement is that the Request record should be updated only after both level approval is approved. Once both level of approvals are approved, the request state field should be set as approved and Approval field should be set as approved in the Request (sc_request) form.
  • If even one approval is pending, the record should not be updated.

Issue:
Currently, the record is getting updated even if only one level of approval is approved, instead of waiting for both approvals.

5 REPLIES 5

Vishal Jaswal
Tera Sage

Hello @Koti18 

Step#7 is the issue here, as instead of sc_request you should be relying on subflow outputs.

For example Subflow#1 should have output variable like groupApprovalState with value like pending or approved or rejected.

For example Subflow#2 should have output variable like individualApprovalState with value like pending or approved or rejected.

Then your step 7 "IF Request is approved" should be updated to something like

 Step 3-4 → Outputs → groupApprovalState        is        approved
AND
   Step 5-6 → Outputs → individualApprovalState   is        approved

Step#10 wil be:

Step 3-4 → Outputs → groupApprovalState        is        rejected
   OR
   Step 5-6 → Outputs → individualApprovalState   is        rejected


Hope that helps!

In Step 7, I have already I retrieve the outputs from both subflows and apply a condition check. For example, if the output of the first subflow is Approval1 = Approved and
 Output of the second subflow is Approval2 = Approved, then only I update the record.

 

 

Hello @Koti18 

Can you share the screenshots please and also share the screenshots of flow execution for these steps.


Hope that helps!

Rakesh_M
Kilo Sage

Hi @Koti18 ,
If you are using ask for approval action in parallel on a same record it would not work as expected.
1.Make the approval Field empty on one of Ask for approval action

Rakesh_M_1-1779470410340.png

2.Now based on  parallel approvals result update the approval filed on Parent/Trigger record.