Latest Posts

How to break out of a condition in Power Automate?


In Power Automate, to "break out" of a condition or stop the flow from continuing under certain conditions, you have a few options depending on your exact goal. Here’s a breakdown of common scenarios.

Power Automate - Use a Condition Control to break out

A Condition in Power Automate is like an if statement. You can't "break" from it like a loop, but you can stop actions from happening by placing them inside the appropriate branch.

Example:

Condition: If Status is not 'Approved'

    Yes: Send an email, Terminate flow

    No: Continue with next actions

Power Automate - Terminate Action

To completely exit the flow from within a condition, use the Terminate action:

  • Add Terminate action inside the Yes or No branch.
  • Choose a status (e.g., Succeeded, Failed, or Cancelled).

Note: Use it if you want to stop the entire flow early when a condition is met.

Power Automate - Break from Loop (for Each, Until)

If you're in a loop (e.g., Apply to each, Until) and want to break out:

  • Use Terminate (to stop the flow).
  • Or set a flag variable and check its value in the loop condition.

Note: There’s no native Break action like in traditional programming—so it's about structuring the flow logic carefully.

 

Power Automate - Scope + Run After

For more complex logic, use Scope actions and control the execution of downstream steps using Configure Run After to chain logic only when previous actions meet your criteria.


We value your Feedback:

Page URL:

Name:

Email:


Suggestion:

© 2025 Code SharePoint