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 / Get items filter query...
Power Automate
Unanswered

Get items filter query using boolean

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,


I'm trying to use a filter query to filter my Get Items (from Sharepoint) step.  The column i'm trying to use for the filter is a Yes/No.  I've tried Columnname eq false, Columnname eq 'false', 

equals(item()?['Columnname'], json('false')), Columnname eq 0, tried a Filter array, etc.  I'm struggling to get my filter to work no matter what I try.  Any suggestions?
 
Thanks in advance
Categories:
I have the same question (0)
  • AlanPs1 Profile Picture
    2,471 on at

    Hi @russrimm 

     

    Can you please post a picture of (or a C&P) of the JSON from Get Items and the value that relates to your " Columnname"?

     

    If you find my posts helpful, please mark with thumbs up

     

    Any questions, just ask.

     

    Thanks, Alan

  • russrimm Profile Picture
    Microsoft Employee on at

    Thanks Alan, the column i'm trying to filter in is called "ClosedOut"

    closedout.PNG

  • AlanPs1 Profile Picture
    2,471 on at

    Hi @russrimm 

    I haven't tested this but at a glance, it looks as if it should be: 

    equals(item()?['ClosedOut'], 'false')

    or

    equals(string(item()?['ClosedOut']), string('false'))

    Please give them a try and see if any improvement.

     

    If you find my posts helpful, please mark with thumbs up

     

    If this solves your issue, please click "Accept as Solution"

     

    Any questions, just ask.

     

    Thanks, Alan

  • russrimm Profile Picture
    Microsoft Employee on at

    Thanks again Alan,

    One more confusion for me - i've got a couple of other filters with it which are working (Event Date gt and lt a specific date).  How do I integrate this additional filter into that?  Tried both of your suggestions a few different ways, with and without the and ClosedOut eq, with and without the ' ' around it, etc.  I keep getting a lot of Column 'false' does not exist.

    Capture.PNG

    Thanks again

  • AlanPs1 Profile Picture
    2,471 on at

    Hi @russrimm 

     

    Some of what I posted there wouldn't slot right into a filter query, please consider the below:

    Where I have interested the dates above, please add your own using your adddays & utcNow with no single inverted commas.

     

    Event_x00200_Date gt 2019-10-22T-00:00:00Z AND Event_x00200_Date lt 2019-10-29T-00:00:00Z AND ClosedOut eq 'false'

    Please let me know how you get on?

     

    If you find my posts helpful, please mark with thumbs up

     

    If this solves your issue, please click "Accept as Solution"

     

    Any questions, just ask.

     

    Thanks, Alan

  • russrimm Profile Picture
    Microsoft Employee on at

    Thanks Alan,

    I tried adding a new get items step and added only ClosedOut eq 'false' by itself and it ends up returning all records whether ClosedOut is true or false.  I also tried it without the single quotes.

  • AlanPs1 Profile Picture
    2,471 on at

    Hi @russrimm .

     

    From memory, it may be the case that Filter query doesn't handle the boolean very well (I may be wrong, been a while) so I'd advise for this one, filter query on your dates then add a condition to test ClosedOut after that.

     

    In the mean time, I will look to recreate by creating a list with a boolean and some dates and report back but if it were I, and the filter query wasn't working, just pop a condition after the get items using the code I mentioned initially and it will only pass the condition in line with what you tell it to.

     

    If you find my posts helpful, please mark with thumbs up

     

    Any questions, just ask.

     

    Thanks, Alan

  • Prafull Profile Picture
    8 on at

    The Get Items action in flow does not work with filter query if you pass true or false for Yes/No column. You need to use Boolean value. 
    Try CloseOut eq '0'

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    SOLUTION - Yes/No though display as "true/false" by PowerAutomate, but OData recognize as "1 and 0".  1 for Yes, 0 for No.

  • jbs_bs Profile Picture
    25 on at

    Hi,

     

    In oData, use 1 to true, and 0 to false... 

     

    e.g.: Columnname eq 0

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard