Back to blog
Power Automate Power Automate trigger condition and how to buil...

Power Automate trigger condition and how to build it

A trigger condition tells Power Automate to only run the flow when a specific condition is met at the moment of triggering – before any actions run. Without one, a flow using a “when item is modified” trigger fires on every single update, even when nothing relevant changed. That wastes flow runs and slows down your environment.

Y

Yohannes verified

  • 5 min read
  • 68

Comments: 0


A trigger condition tells Power Automate to only run the flow when a specific condition is met at the moment of triggering – before any actions run. Without one, a flow using a “when item is modified” trigger fires on every single update, even when nothing relevant changed. That wastes flow runs and slows down your environment.

Trigger conditions are also the standard fix for the infinite trigger loop problem. The catch: the trigger condition field expects an expression, and there’s no dynamic content picker or guided UI to help you write it. Most people get stuck here.


The workaround is to use the ‘Filter array’ action as a condition builder, then copy the generated expression into the trigger.

Use ‘Filter array’ to build the trigger condition

The ‘Filter array’ action is designed for filtering arrays, but it has a useful side feature: it lets you build a condition using the standard Power Automate UI, then converts it into a raw expression when you switch to advanced mode. That expression is exactly what the trigger condition field expects.

Example: trigger a flow only when the choice column ‘ApprovalStatus’ is set to ‘Not started’. Add a ‘Filter array’ action to your flow and build the condition using the UI:

power automate trigger condition

Click ‘Edit in advanced mode’. The action converts your condition into an expression:

power automate trigger condition

Copy the expression and paste it into the trigger condition field on your flow’s trigger. Then delete the ‘Filter array’ action – it was only needed to generate the expression.

Power Automate trigger condition field with expression

Combining trigger conditions

AND

Every line in the trigger condition settings must return true for the flow to run – they have an AND relationship by default. To add a second condition, repeat the Filter array process for each one and paste each expression on its own line.

Example: trigger only if ‘ApprovalStatus’ is ‘Not started’ AND ‘Approver’ is empty:

power automate trigger condition

OR

OR conditions require a bit more work. Since each line has an AND relationship, OR logic must go on a single line using the @or() expression. Use Filter array to generate each individual condition expression, then combine them manually:

@or(condition1, condition2, condition3,...)

Important: each condition generated by Filter array starts with @. Remove the @ from each individual condition – only the outer @or() should have it.

Example: trigger if ‘ApprovalStatus’ is ‘Not started’ OR ‘Approver’ is empty:

@or(equals(triggerOutputs()?['body/ApprovalStatus/Value'], 'Not started'),equals(triggerOutputs()?['body/Approver'], null))

power automate trigger condition

Summary

The trigger condition field looks intimidating because it’s a plain text box with no UI help. But you don’t need to write the expression from scratch. Use the ‘Filter array’ action to build your condition visually, switch to advanced mode to get the expression, copy it into the trigger, then remove the Filter array action.

  • Multiple trigger conditions on separate lines = AND
  • Multiple conditions on one line using @or() = OR

Collaborative publishing

Build on this work

The author has not enabled new contributions for this item.

Discussion (0 comments)

Join the Discussion

Login to share rich-text comments and reply to other members.

No comments yet. Be the first to share your thoughts!