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!

7 REPLIES 7
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.

dennis51
Regular Visitor

Thanks so much - this did the trick!!!!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,571)