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 / ODATA Filter Query - t...
Power Automate
Answered

ODATA Filter Query - true/false SharePoint Column

(0) ShareShare
ReportReport
Posted on by 119

Hi all, I am baffled. I have used ODATA queries 100s of times, but a very simple query is exhibiting very strange behavior and I can't figure it out.

 

The Flow: I am using a Get Files (Properties Only) (SharePoint connector) to retrieve a set of files from a SharePoint Library. I only want to retrieve files in which 'Active' is marked true. Active is a yes/no column type. The SharePoint library has 203 total documents, and 119 of them show Active=true.

 

Below is my filter query. My top count far exceeds the number of files in the library. The Compose action uses the length function to count the number of files returned.

Get filesGet files

 

You can see that the internal field name for the Active column is 'Active'

Internal field nameInternal field name

 

The Length function shows that only 68 files were retrieved by the query. It should have retrieved 119.

Test resultsTest results

 

When I examine the raw outputs of the Get Files, it shows that all 68 items retrieved have Active = false. Literally the opposite of what the query should be pulling.

json payloadjson payload

 

I have tried all sorts of queries, such as Active ne false, Active eq 'true', Active eq 'false', and none of the queries retrieve the full set of files that it should. In fact, changing the query from Active eq true to Active eq false did not change the items retrieved at all. Odder still, using Active eq 'true' returned 22 items, even though the column never contains strings.

 

Has anyone ever encountered anything like this? Am I overlooking something? I feel like I'm going crazy - I have literally done 100s of these and I have hit a wall in troubleshooting this one. 

 

Thanks in advance.

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @powerUser1611 

    Can you try to use this expression in your Filter Query:
    Active eq 1

     

    I test it in my side , it works good:

    vyueyunmsft_0-1716946105186.png

     

    Best Regards,

    Yueyun Zhang

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard