Parallel Approvals Issue in Flow Designer – Record Updates After Single Approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
44m ago
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!