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 / How to test SharePoint...
Power Automate
Unanswered

How to test SharePoint Yes/No (boolean) field in condition

(3) ShareShare
ReportReport
Posted on by 6

I am trying to check a SharePoint Yes/No (boolean) field for a true condition. The condition always fails. I have tried to see it it is equal to "Yes", "True" and "1" with no success. Can someone assist with how to use a condition to test a SharePoint Yes/No field?

Categories:
I have the same question (0)
  • efialtes Profile Picture
    350 on at

    @EdBenton

    Not sure how to do it in normal mode, but I succeded when switched to advanced mode.

    This is an example of a condition that evaluates two boolean fields from a Sharepoint Item. This condition only succeeds if "Permanent" equals false and "Notify" equals true.

     

    @and(not(triggerBody()['Permanent']), triggerBody()['Notify'])

     

    Hope this helps

  • arbangara99 Profile Picture
    32 on at

    I am also trying to get the boolean condition check working on Flow. This is my logic as in advance mode where "Submit" is the boolean column name, any idea why it is not working?

     

    @equals(triggerBody()?['Submit'], 'True')

     

     

  • I_like_PI Profile Picture
    39 on at

    I'm a newb so my apologies, but just to confirm, did you try =1 or ="1"

     

  • arbangara99 Profile Picture
    32 on at

    I didn't. However as stated in the first post ont his thread, EdBenton has tried that already it seems.

  • I_like_PI Profile Picture
    39 on at

    Sorry for the distraction, I was trying to point out the quotes. The boolean state shouldn't be compared to the literal 1 character but the numeric. His original post has the 1 character in quotes. So if it has been tried great but I didn't see it in his text. 

  • arbangara99 Profile Picture
    32 on at

    that didnt work either!

  • I_like_PI Profile Picture
    39 on at

    @efialtespointed out you refer to the item directly where you have:

         @equals(triggerBody()?['Submit'], 'True')

    have you tried

        @triggerBody()['Submit']

    or

        @and(triggerBody()['Submit'])

    with no second arguement?

     

    Good luck

  • arbangara99 Profile Picture
    32 on at

    @triggerBody()['Submit'] works first time. But when I edit my flow after this, I am not able to save it as the condition fields are empty.

  • I_like_PI Profile Picture
    39 on at

    It doesn't look like anyone else is weighing in so.

    @equals(triggerBody()?['Submit']*1, 1)

     

    Sometimes if you force the math true false items will give you what you want.

    & that's the last of my bag o tricks.

     

     

     

  • arbangara99 Profile Picture
    32 on at

    Flow doesnt accept this as a vlid syntax. '*' is not expected they say..

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard