← Al Davies, 250 High Street

OData filter query syntax for Power Automate

An OData filter query is a short text rule that tells an action which rows to return. It has the form column, operator, value, such as stringColumn eq 'string', and you can join rules with and, or and not.

What are the basic operators?

Use parentheses to set the order, for example (contains(name,'sample') or contains(name,'test')) and revenue gt 5000. Microsoft says a comparison can also test two columns in the same row, if the column types match, such as firstname eq lastname.

OperatorMeaningMicrosoft's example
eqEqualrevenue eq 100000
neNot equalrevenue ne 100000
gtGreater thanrevenue gt 100000
geGreater than or equalrevenue ge 100000
ltLess thanrevenue lt 100000
leLess than or equalrevenue le 100000
andBoth rules truerevenue lt 100000 and revenue gt 2000
orEither rule truecontains(name,'(sample)') or contains(name,'test')
notFlips a rulenot contains(name,'sample')

Where do you type the query?

The Filter Query box is separate from the Filter array action. See our guide on Filter array for filtering data you already have in the flow.

ActionBox nameNotes from Microsoft
SharePoint Get itemsFilter QuerySample in the help text: stringColumn eq 'string' OR numberColumn lt 123. Also has Order By and Top Count.
Excel Online (Business) List rows present in a tableFilter QueryFilter functions: eq, ne, contains, startswith, endswith. One filter function per column, one column for sorting.
Dataverse List rowsFilter rowsExample: createdon ge 2021-01-01T00:00:00-00:00. Also Select columns, Sort by, Row count and Expand Query.

Which text functions work?

Dataverse supports contains, startswith and endswith, such as contains(name,'(sample)') or endswith(name,'Inc.'). Put not in front to flip the result. Microsoft says string filters in Dataverse are case insensitive.

Do not start a value with a wildcard. Microsoft says leading wildcards such as startswith(name,'%value') are not supported and slow the query.

The Excel connector's filter functions are eq, ne, contains, startswith and endswith. Do not assume every action supports every function. Check the connector page on Microsoft Learn for the action you use.

How do you handle quotes and special characters?

For a single value that has an apostrophe, type two single quotes in a row. Microsoft's example is lastname eq 'O''Bryan'. Without it you get an error like there is an unterminated literal.

In the Dataverse List rows action, replace characters such as &, # and + with their URL-encoded form. For example, + becomes %2B, & becomes %26 and # is encoded too. Do not type the text $filter= inside the box, because Microsoft says the box does not accept it.

How do you sort and trim the result?

What limits should you know?

These are the limits Microsoft's Dataverse and Excel connector pages list as of November 2026.

Where does the filter usually go wrong?

Check these first: a wrong column name, a missing quote around text, or a filter on a column type the action cannot filter. Our guide on the SharePoint Get items filter query not working covers the error side.

If your list view also needs a filter by the signed-in person, see filter a SharePoint list view by current user. If a view filter hides values, see filter not showing all values.

Need a flow that filters cleanly?

Al Davies builds tools that cut busywork and missed steps for teams. If a filter keeps breaking, bring it to a first call. The first call is free and takes 45 minutes.

FAQ

Is OData filter syntax the same in every action?

The core is the same: column, operator, value. Function support differs by connector, so check the action's page.

Can I use or in a filter query?

Yes. Microsoft's SharePoint example uses OR between two rules, and the Dataverse page lists and, or and not.

Do text values need quotes?

Yes. Wrap text in single quotes. Type two single quotes for an apostrophe inside the value.

Is a text filter case sensitive?

Microsoft says string filters in Dataverse are case insensitive.

Why do I only get 256 Excel rows?

The Excel List rows present in a table action stops at 256 rows until pagination is switched on.

Sources