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 / Problem with "or" cond...
Power Automate
Answered

Problem with "or" condition in sharepoint flow

(0) ShareShare
ReportReport
Posted on by 30

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?

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    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

  • AM-18051333-0 Profile Picture
    30 on at

    This worked 🙂 thank you

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard