Logic Apps — trigger run condition

Michal Molka
2 min readFeb 16, 2024

When a Logic Apps trigger is developed then it reacts to events. Sometimes a requirement is to implement an exception for the trigger. For example, if some type of event occurs then the workflow isn’t invoked. Usually, developers implement logic directly inside the Logic App.

This example uses a “When a blob is added or modified” trigger. Checks if a BLOB name equals test-file.json. If not, then workflow proceeds. If is equal, then a workflow run gets a Canceled status and finishes its work.

However, here is another way to deal with this situation. There is no need to implement any logic inside the workflow and the workflow won’t even run.

Go to trigger settings, there is a Trigger Conditions section. Where you are able to add trigger conditions as an expression.

When the test-file.json is updated or inserted, then the trigger doesn’t react and the workflow doesn’t start as well.

--

--