web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with trigger cond...
Power Automate
Answered

Help with trigger conditions using OR

(0) ShareShare
ReportReport
Posted on by 546

Hi everyone, Happy Friday!

I've been reading this post on Trigger Conditions: 

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Trigger-conditions-filling-the-information-gap/ba-p/731974

 

I have a flow where I would like a trigger condition where it is one of 4 different triggers.  I have 4 fields in my SharePoint list that could update, so I have created 4 dummy fields that update when a change is made.

So I would like my trigger condition to be this:

if field 1 is not equal to dummy field 1

or

if field 2 is not equal to dummy field 2

or

if field 3 is not equal to dummy field 3

or

if field 4 is not equal to dummy field 4

 

The syntax is kicking me to the curb, and if anyone can lend a hand that would be great.

 

Here is my actual flow for clarity.

 

tutorunitmanagement.jpg

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at

    Hi @smorley,

     

    You should be able to use this syntax. Replace the hard coded values 1,2,3 and 4 by your dummy fields.

     

    @or(not(equals(triggerOutputs()?['body/field1'], 1)))
    @or(not(equals(triggerOutputs()?['body/field2'], 2)))
    @or(not(equals(triggerOutputs()?['body/field3'], 3)))
    @or(not(equals(triggerOutputs()?['body/field4'], 4)))

     

    triggerconditions_or.png

  • smorley Profile Picture
    546 on at

    Thanks @Expiscornovus - I was trying too hard with the syntax, trying to get it on one line.  Although I may have not explained it right.

    Let me try again.
    Looking at my flow.
    Trigger the flow:

    if Unit name doesn't equal workflow unit name or Med Year doesn't equal workflow med year 

    I would like it to evaluate both at the same time.

  • smorley Profile Picture
    546 on at

    @Expiscornovus syntax is good now, but the flow still runs twice.  Once when I make the change and it goes through the workflow and updates my list item, and then the second time where there were no changes.

  • Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at

    Hi @smorley 

     

    A possible workaround could be to add a boolean field (with a default value of false) to your list which. Set that boolean to true when your change the item for the first time in your flow. And add a boolean equals false expression to your trigger conditions. That could prevent your flow from triggering twice.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard