Move Loop to Stage
The Move Loop to Stage action moves a loop to a stage. The loop enters the stage and the stage's When entered actions run as a separate run with their own history record.
When to Use This Action
Use this action when:
- Something happened that should advance the loop, such as a customer replying or a payment arriving
- You want to send a loop back to an earlier stage, or to the stage it is already in, which starts a new visit
- Another workflow, for example one triggered by an email, found a loop and needs to move it
To close a loop, use Close Loop. To re-check a loop without leaving its stage, use Wake Loop.
Configuration
| Field | Description |
|---|---|
| Loop | The ID of the loop. Optional in a loop stage or event: leave it empty to use the loop this run belongs to. Required everywhere else, including in a macro or AI action called from a loop run, because those do not see the calling loop. Supports text expressions. |
| Stage | A stage of the loop's type. Required. Choose it from the list, or unlock the field and type the stage's ID, its name (ignoring case), or a text expression that renders one of them. |
The list shows stages you have saved when you edit the actions of a stage or an event in a loop type. Stages you add while editing appear after you save the loop type. Everywhere else, Stage is a text field: type the name, ID, or text expression. An ID is tried first, then the name. Choosing from the list stores the stage's ID, so renaming the stage later does not break the action.
What Happens to the Current Run
- When the action moves the loop that the run belongs to, the run ends at this action. The actions after it do not run, and the run is shown as completed, not failed. Put this action last in the list.
- When the action moves a different loop, the move is only requested and the run continues.
A loop runs one thing at a time, so the move waits until the loop's current run finishes. The new stage's actions never overlap with that run.
Returned Variables
This action does not return any variables.
Notes
- The stage must belong to the loop's type. If it does not, the action fails and the message lists the available stages.
- Moving a loop to the stage it is already in is allowed.
- The loop must belong to your account. An unknown loop ID fails the action.
- The action fails if the loop is closed. Reopen the loop first.
- The run history shows what the action did, including whether the run ended.