Skip Iteration flow logic
Skip the current iteration of a flow logic loop when the conditions of an If flow logic are met. Continue running the flow logic loop with the next item in the list. This flow logic is also known as continue.
Valid Skip Iteration placement
You can only add Skip Iteration flow logic within certain portions of a flow. The Skip Iteration flow logic must be within a branch of a parent looping flow logic block such as For Each flow logic or Do the following until flow logic. In addition, the flow logic loop must define a set of conditions to skip an iteration. You can only add a Skip Iteration flow logic within a Then branch.
- Then branch of an If flow logic block
- Then branch of an Else If flow logic block
- Then branch of an Else flow logic block
Inputs
This flow logic has no inputs.
Outputs
This flow logic has no outputs.
Execution Details
When a flow skips an iteration, the Skip Iteration flow logic has a state of Completed for the item that was skipped. Any following steps in the same For Each or Do the following until flow logic loop have a status of Not Run for the skipped item.
Skip iteration when an incident is an inquiry category
In this example, a flow generates a list of incidents assigned to a user. For each incident that is assigned to the user, the flow sends an email. If the current incident record is in the Inquiry/Help category, then the flow skips the current item. The flow continues with the next incident record in the For Each flow logic loop.
Exit Loop flow logic within an If flow logic then branch
Execution details of Skip Iteration flow logic
In this example, the first item is an incident in the Inquiry category, which meets the skip iteration conditions. The flow does not run the Send Email action for this iteration.
Parent Topic:Workflow Studio flow logic
Related topics
Append to Flow Variables flow logic
Assign subflow outputs flow logic
Do the following until flow logic