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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem with "or" cond...
Power Automate
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?

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    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

  • CrispyFries Profile Picture
    26 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard