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

Community site session details

Session Id : 5py1c4u5PCmC2nnQ6FrEQ6
Power Automate - Building Flows
Answered

Help with trigger conditions using OR

Like (0) ShareShare
ReportReport
Posted on 4 Dec 2020 14:26:09 by 544

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

  • Expiscornovus Profile Picture
    32,205 Most Valuable Professional on 06 Dec 2020 at 16:35:01
    Re: Help with trigger conditions using OR

    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.

  • smorley Profile Picture
    544 on 04 Dec 2020 at 19:38:46
    Re: Help with trigger conditions using OR

    @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.

  • smorley Profile Picture
    544 on 04 Dec 2020 at 17:55:52
    Re: Help with trigger conditions using OR

    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.

  • Verified answer
    Expiscornovus Profile Picture
    32,205 Most Valuable Professional on 04 Dec 2020 at 16:27:53
    Re: Help with trigger conditions using OR

    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

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2