Is there an better alternative to Condition statement to stop Logic App?

Viewed 1076

I currently have a Logic App that has an empty false path since the Logic App. The only reason I use a condition is because the LogicApp should stop when the condition is false. Is there a better alternative to stop a Logic App when a certain condition/statement is reached?

1 Answers

You can use Terminate action:

This action stops the run for a workflow instance, cancels any actions in progress, skips any remaining actions, and returns the specified status. For example, you can use the Terminate action when your logic app must exit completely from an error state. This action doesn't affect already completed actions and can't appear inside Foreach and Until loops, including sequential loops.

You can refer to my logic app:

enter image description here

This is my test result, it seems there is no problem:

enter image description here

Related