in flow approval related issue

shamsuddinm
Tera Contributor
shamsuddinm_0-1769264044908.png


In this flow, after the approval is rejected, the RITM correctly moves back to Work in Progress. However, when it is sent again for approval, and the approver approves it, the RITM state does not change to Closed Complete as expected.

1 REPLY 1

Carlos Petrucio
Mega Sage

Hi,

From your description, it seems the flow is partially working:

  • When the approval is rejected, the RITM correctly moves back to Work in Progress.

  • When the approval is resubmitted and approved, the RITM does not transition to Closed Complete as expected.

This behavior is usually caused by how the Flow Designer handles state transitions on re-approvals. Here’s a detailed breakdown of common causes and solutions:


1. Check the Approval Action

  • In your Flow Designer, make sure the Approval Action for “Approved” is configured to transition the RITM to Closed Complete.

  • Sometimes, the action only fires the first time the approval occurs. After a rejection, the flow may not recognize the re-submitted approval as a “new approval” unless configured properly.


2. Check Flow Conditions / Triggers

  • If your flow uses conditions like current.state == X, after a rejection the state changes, so when it’s re-approved, the original condition may no longer match.

  • Solution: Adjust conditions to handle resubmitted approvals, for example:

    • state == Work in Progress and approval requested.


3. Configure “Wait for Approval” Correctly

  • Ensure the Wait for Approval step is set to resume after resubmission, not just the first approval cycle.

  • Look for options such as “Re-evaluate conditions after approval” or “Allow multiple runs” depending on your Flow Designer version.


4. Test RITM State Transitions

  • Add temporary debugging actions or notifications to confirm which paths the flow is taking after a re-approval.

  • Check if the state transition action is being skipped because the flow thinks the RITM already passed that step.


Summary:
The issue usually occurs because Flow Designer logic only handles the first approval cycle. To fix this:

  1. Ensure the Approved action transitions the RITM to Closed Complete.

  2. Adjust conditions/triggers to account for resubmitted approvals.

  3. Configure the Wait for Approval step to handle multiple approval cycles.

  4. Use debugging notifications to confirm the correct path is executed.

By applying these adjustments, your RITMs should move to Closed Complete correctly after re-approval, just like the first time.


Was this explanation helpful? If so, please mark it as correct!

Carlos Petrucio
ServiceNow Developer