Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Breaking out of Scope

I was wondering if its possible to break out of a scope?


I have a number of steps which id like to place into a single scope [Scope 1], then if any step *fails*, id like to exit the current scope and run the next scope [Scope 2] (which which is configured to run only when the above scope fails, is skipped or timesout).


I thought I could do it by using Terminate-Failed, but this skips Scope 2 as well.


*Fail* here could either be, those determined by the flow (e.g. status code 400 from a http call) or by some user defined criteria within Scope 1 (e.g. "if value is equal to xxxx then Fail")



Super User
Super User

Hi @AdamWilliams,

Maybe you can use the configure run after option settings. Over there you can configure when the second scope should run. You can for instance set that one up that it only runs when the previous scope fails.



Super User
Super User

Hi @AdamWilliams,


Apologies, after reading your original post it looks like you are already using that configure run after setting, correct?


For additional checks you can probably use a condition action and look for instance at the statuscode of the result outputs of the different actions within your scope.


Below example gives back the statuscode of the first action within scope action.






Frequent Visitor

Hi @Expiscornovus 


Yes its already configured and so this works in the case where a failure is determined by the flow (e.g. status code 400 from a http call)

However (as far as I can tell) I cannot manually trigger a "Fail" for some other user defined condition e.g.




Essentially I want a "break" 🙂


Thanks Adam 




Frequent Visitor

Ok, so in my reply to @Expiscornovus I figured I "could" trigger a failure generated by the flow.

By intentionally calling a http request which would give a 404, which in turn is handled by the flow as a failure.

As below





For an input "Yes" we get




And an input "No":



But the very fact I "could" do this, really doesn't I "should".

Any other "proper" suggestions 😄




Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,122)