Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Problem with "or" condition in sharepoint flow

(0) ShareShare
ReportReport
Posted on by 26

I'm trying to create a flow that triggers an email when a new item is added to a sharepoint list (its a new user form that details their equipment requirements)

 

The item has a number of yes/no fields and i want the flow to send an email to an email address if any of the fields values are set to yes. My problem is the OR condition doesn't appear to accept more than 2 values.

 

This works if one of the values is set to yes in the sharepoint form:

@or(equals(triggerBody()?['DeskRequired'], true), equals(triggerBody()?['DeskphoneRequired'], true))

 

This doesn't, it always evaluates to false even if the values are set to yes in the sharepoint form

@or(equals(triggerBody()?['DeskRequired'], true), equals(triggerBody()?['DeskphoneRequired'], true), equals(triggerBody()?['DualMonitors'], true), equals(triggerBody()?['Location'], true), equals(triggerBody()?['MiFiRequired'], true), equals(triggerBody()?['SmartCard-Keyboard'], true))

 

What am i doing wrong?

  • CrispyFries Profile Picture
    26 on at
    Re: Problem with "or" condition in sharepoint flow

    This worked 🙂 thank you

  • Verified answer
    v-yamao-msft Profile Picture
    on at
    Re: Problem with "or" condition in sharepoint flow

    Hi @CrispyFries,

     

    I made a test on my side with the or function. I have four Yes/No fields in my list.


    I configured the function in flow likes below and it worked fine when any of the fields value were set to Yes.

    @or(equals(triggerBody()?['Approved_x003f_'], bool('True')),equals(triggerBody()?['Test2'], bool('True')),equals(triggerBody()?['Test3'], bool('True')),equals(triggerBody()?['Test4'], bool('True')))

    3.PNG

     

    Hope it can be a reference for you.

     

    Best regards,
    Mabel Mao

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492