Go back to flow logic

  • Release version: Australia
  • Updated March 12, 2026
  • 3 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Go Back to Flow Logic

    Go back to flow logic allows users to return to a prior step in a flow to repeat actions. This feature is only available in flows created from the Washington DC family release onward, meaning earlier versions do not support this functionality.

    Show full answer Show less

    Key Features

    • Placement Restrictions: Go back to flow logic must be positioned within specific parts of a flow, including branches of If, Else If, Else, Make a decision, and Catch logic. It cannot be placed in the Error handler section.
    • Target Step Requirements: The target step must precede the Go back to flow logic and cannot be in a different branch or the same branch as the Go back to flow logic. Additionally, it must not be within a non-branching flow logic block unless that block contains a child Go back to flow logic.
    • Loop Management: Selecting a target step outside the parent flow logic block resets the loop iteration count. It’s crucial to manage loop iterations, as there are limits set by the maximum number of loop iterations property.

    Key Outcomes

    When implemented correctly, Go back to flow logic enables the repetition of actions in a flow, enhancing process flexibility. To ensure effective use:

    • Add Go back to flow logic after the flow structure is complete.
    • Avoid duplicate Go back to steps, as only the first one meeting conditions will be executed.
    • Prevent infinite loops by establishing clear end conditions for the flow.
    • After adding Go back to flow logic, it cannot be moved; it must be deleted and re-added if changes are needed.

    These guidelines help maintain flow integrity and improve overall process efficiency in ServiceNow.

    Return to a prior step in the flow to repeat a sequence of actions.

    Family release requirements

    You can only add Go back to flow logic to new flows created from the Washington DC family release and forward. Flows that were created in versions prior to the Washington DC family release do not support Go back to flow logic.

    Valid Go back to placement

    You can only add Go back to flow logic within certain portions of a flow.
    • The Go back to flow logic must be within a branch of a parent flow logic block.
      • Then branch of If, Else If, or Else flow logic
      • Answer branch of Make a decision flow logic
      • Catch branch of Try flow logic
    • The Go back to flow logic must be outside of the Error handler section.

    Valid Go back to target step

    Go back to flow logic only allows you to select a valid return target step. A valid target step must meet all of these conditions.
    1. The target must be a step before the Go back to flow logic.
    2. The target can't be a step within a different branch of the flow.
    3. The target can't be a step within the same branch as the Go back to flow logic.
    4. The target can't be a step within a non-branching flow logic block unless the non-branching flow logic block also includes a child Go back to flow logic.
    5. The target can be a step outside of a non-branching flow logic block except for Do the following in parallel flow logic.
      Warning:
      Selecting a target step outside of a parent flow logic block exits the current loop and resets its loop iteration count. The system displays separate loop iteration counters for the Go back to loop and the parent flow logic block. All loops are limited by the maximum number of loop iterations property (sn_flow_designer.max_iterations).

    Inputs

    Input Description
    Go back to step Step in the flow that meets the conditions of a Go back to step target.

    Go back to start of flow

    In this example, the flow goes back to the first step when the approval task for the trigger record is rejected. Valid Go back to targets include steps 1, 2, and 3. Step 4 violates rule 2 as it's a step within a different branch. Steps 5 and 6 violate rule 3 in that they're steps within the same branch of the flow.

    Sample flow demonstrating Go back to flow logic

    Go back to step menu displaying three choices for steps 1, 2, and 3.

    Outputs

    This flow logic has no outputs.

    General guidelines

    Use these general guidelines when adding Go back to flow logic.

    Add Go back to flow logic after the flow structure is complete
    Go back to flow logic depends on a fixed sequence of steps to function properly. Wait to add Go back to flow logic until the flow has valid target steps.
    Avoid creating duplicate Go back to steps
    A flow uses the first Go back to flow logic whose conditions are met. The flow ignores all Go back to flow logic steps after the first.
    Avoid creating infinite loops
    Specify a condition to resume the flow or to throw an error with each Go back to loop. Error and resume conditions prevent a flow from running until it reaches the maximum number of loop iterations (sn_flow_designer.max_iterations property). You can use an If flow logic to check for loop end conditions. For example, create a flow variable that counts how many times the flow has run the Go back to flow logic. When the flow variable reaches a limit, end the flow.
    Delete Go back to flow logic to move it
    After you add Go back to flow logic, you can't move it to another location. You can only delete it from its current location and then add it to another valid location.