Power Automate OData Filter Query Examples (SharePoint Get Items)
The Filter Query box in Get items is the best way to stop a flow pulling every row in a list. It is also where most people get stuck, because one wrong quote or column name gives a vague error. Here are the patterns I use most, in the order that solves the most problems.
1. Use the internal column name, not the display name
This is the most common cause of a failed filter. The filter needs the column's internal name. If you created the column as Due Date, the internal name is often Due_x0020_Date, because spaces are encoded.
To find it, open the list settings, click the column, and look at the end of the address bar for Field=. That value is the internal name.
2. Text columns: eq, ne and startswith
Text values go in single quotes. The operator words are lower case.
Title eq 'Invoice 1001'
Department ne 'Finance'
startswith(Title,'INV-')
To find text anywhere in a column, use substringof. The search text comes first:
substringof('contract',Title)
If the text itself contains a single quote, such as O'Brien, double it: 'O''Brien'.
3. Choice and Yes/No columns
A single-choice column filters like text: Status eq 'Open'. A Yes/No column compares to 1 or 0, with no quotes: Approved eq 1.
4. Numbers
No quotes. Use gt, ge, lt and le: Amount gt 5000.
5. Dates
Compare with an ISO date in single quotes. Items due before today:
DueDate lt '@{formatDateTime(utcNow(),'yyyy-MM-dd')}'
A range:
DueDate ge '2026-11-01' and DueDate le '2026-11-30'
SharePoint stores times in UTC, so a filter near midnight can be out for your users.
6. Lookup and person columns
Customer/Id eq 12
AssignedTo/EMail eq 'sam@yourcompany.com'
If either fails, run Get items without it and use a Filter array action afterwards.
7. Empty and non-empty values
DueDate eq null
Notes ne null
8. Combine conditions
Add brackets when you mix and with or:
Status eq 'Open' and (Priority eq 'High' or Priority eq 'Urgent')
9. Sort and limit
Sorting goes in Order By (for example Modified desc), not in Filter Query. Use Top Count to limit rows, and turn on Pagination for more than 100.
On a list with more than 5,000 items, filtering on a column that is not indexed can fail with a threshold error. Index the columns you filter on, and add one condition at a time so you know which part breaks.
Originally published on Winstack365. I'm Daniel Awokunle, a Microsoft 365 consultant; more free guides at winstack365.com/guides.
About the author
- Daniel Awokunle is a Microsoft 365 consultant and the founder of Winstack365. 500+ projects across SharePoint Online intranets, Power Apps, Power Automate, Teams, Exchange and Copilot readiness for small and mid-sized firms. Top Rated on Upwork with 100% job success. Free plain-English guides at https://winstack365.com/guides
Comments
Join the discussionNo comments yet. Be the first to comment.
