cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
skylitedave
Kudo Kingpin
Kudo Kingpin

Get Items in SharePoint List based upon Checkbox

Is a SharePoint checkbox (yes/no) a supported field type for Get Items for SharePoint in Flow. I have tried all of the following in the Filter Query Odata Entry in Flow

 

checkbox eq true

checkbox eq bool(1)

checkbox eq Yes

checkbox eq yes

checkbox eq 1

checkbox eq 'Yes'

checkbox eq 'yes'

 

None of these work.  All give the same error with multiple retries and a status of "Bad Gateway"  

 

I CAN get a checkbox to work fine in an if statement with the syntax below if I nest an if under a get items based upon other fields within the list.  So a checkbox is suppported in the If Condition

 

@equals(item()?['checkbox'], true)   

 

I even tried puttting true in as a function 

 

checkbox eq function(true)

 

No luck

 

 

Thx!

6 REPLIES 6
v-yuazh-msft
Community Support
Community Support

Hi @ skylitedave,

 

Does the "Checkbox" type column is the "Yes/No" type column that you mentioned?

 

I have made a test and the issue is confirmed on my side, 

 

Filter Query the "Yes/No" type column is not supported in microsoft flow currently,

If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,
Alice Zhang

Correct - Tying to get lis items based upon a Yes No Field in SharePoint....

 

At least I know it is not presently supported....This is needed for many scenarios......

 

Follow this link to vote for this capability

 

https://powerusers.microsoft.com/t5/Flow-Ideas/Get-Items-SharePoint-List-Add-support-for-filtering-u...

 

 

Thx

SPA
Advocate II
Advocate II

Okay, I banged my head on this one for a while too... In SOME cases, Power Automate (FLOW)'s Filter Query does not recognize SharePoint's boolean field values as T/F or Y/N.... it sees them as 1/0 so the following should work:

checkbox eq '1'    (for true values)

checkbox eq '0'    (for false values)

I know this was a very old post, but hopefully this helps someone in the future as searches for solutions rarely return this info

bdewitt
Regular Visitor

I had the same issue, and this worked for me.  Thanks for sharing!

THANK YOU  ... saved my day 🙂

 

also take a look at Fusion (nocodesolution) - it might be helpful in many cases where flow just cannot do it 🙂

THANK YOU !!   Your tip saved my day!

 

also take a look at Fusion (nocodesolution)  .. it is free and it helps where flow cannot do it.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,440)