Orchestrator – Looping on a PowerShell Object

Looping can be a little tricky if you don’t know the rules Orchestrator uses:

The Exit tab specifies the conditions that will determine if the loop will exit. The Do Not Exit tab specifies the conditions that will cause the loop to continue. The rules on the Do Not Exit tab will supersede the rules on the Exit tab.
The rules within each tab are joined using an Or condition. Only one of the conditions on a tab will need to be true for the entire tab to be true.
I like to stack the rules within the Exit tab to make it easier to track which conditions will cause the activity to continue.
My looping exit conditions will look like this:
orchestrator-12

Leave a Reply