Citizen Developer
  • All of Microsoft
  • My Role
    • All in My Role
    • Citizen Developer
  • Focus
    • All in Focus
    • Microsoft Ignite 2026
    • Generative Pages and Apps
    • Microsoft Copilot Studio
    • Copilot Studio - Agent Step-by-Step
    • What's Hot
    • M365 Release
Timespan
explore our new search
Power Automate: Filter SharePoint items with OData
Power Automate

Power Automate: Filter SharePoint items with OData

by HubSite 365 about Pragmatic Works

Use OData in Power Automate's SharePoint Get items action to return only records that match your criteria.

Key insights

  • Enter the OData expression in the Get items action's Filter Query field.
  • Use eq to match a value, such as Status eq 'Approved'.
  • Enclose text values in single quotation marks.
  • Combine requirements with and; every condition must be true.
  • Filter Query limits records returned by SharePoint; a condition acts after records reach the flow.

Power Automate’s SharePoint Get items action can use an OData Filter Query to retrieve only list items that match your criteria, rather than returning items for the flow to filter later. This approach is useful for flow makers who want to narrow results by a column value or combine straightforward criteria. Pragmatic Works demonstrates the pattern with an office request list, using approval status and priority as examples.

What it does

A Filter Query is a search expression entered in the SharePoint Get items action. SharePoint applies the expression when returning list items, so the flow receives matching records rather than the full set and then filtering it afterward. In the demonstration, the first query selects approved requests from an office list.

The expression uses OData syntax: a column name, an operator, and a value. For example, means return items where the Status column equals Approved. Here, means “equal to,” and the text value is enclosed in single quotation marks.

Adding another criterion can make the results narrower. The example asks for records that satisfy both requirements. In the demonstrated list, filtering by status returns three items, while adding the priority requirement reduces the results to two.

Who it is for and what you need

This pattern is for people building cloud flows that read SharePoint lists. You need a flow with a SharePoint Get items action, and the action needs a site address and list name. The demonstration uses a manual or instant trigger, but the filtering itself is configured in Get items.

Use the method when the records can be selected using criteria supported by the SharePoint query. The benefit is most direct when a flow would otherwise retrieve records it does not need. Filtering at the source reduces the number of records sent to Power Automate and the data the flow must process.

Before writing a query, identify the relevant list column and the value you want to match. The examples use text values for Status and Priority. For a real list, check that the column reference and the value in the expression correspond to the list you are querying.

How it works

  1. In your cloud flow, add the SharePoint Get items action. Select the site address and the target list.

  2. Open the action’s advanced parameters and locate the Filter Query field. Enter the column name, the operator, and the text value in single quotation marks. For example: .

  3. To require a second match, add followed by another column, operator, and value. For example: . Both expressions must be true for an item to be returned.

  4. Test the flow with records that should match the query. The demonstration adds a Create HTML table action and sends the results by email, making it easy to inspect the returned items. Compare the result with the corresponding items in the SharePoint list.

The HTML table and email are ways to view test output, not requirements for using Filter Query. You can inspect the action’s run results instead. The key check is whether the returned items meet the conditions you entered.

For a broader look at Power Automate, the main design choice here is where filtering happens: at the SharePoint source or after the flow receives data.

Limitations and alternatives

Filter Query and a flow condition are not interchangeable. A Filter Query asks SharePoint to return only matching items. A condition evaluates records within the flow after the flow has received them. If a straightforward query can select the records you need, filtering before retrieval avoids passing unrelated items into later flow steps.

OData syntax is less familiar than a visual condition, so test the expression rather than assuming it is correct. The examples in this pattern use and ; each criterion must be written in the expected column-operator-value form. Text values need single quotation marks, as in the approved-status example.

Column names deserve particular attention. SharePoint’s displayed column name may differ from its internal name, which is the name used in some OData queries. If a query returns unexpected results, verify the column reference and the stored value. For more involved field types or filtering requirements, determine whether SharePoint supports the expression before relying on it; filtering after retrieval with a flow action such as Filter array can be an alternative where the server-side query does not fit the requirement.

Keep the first test small and recognizable: use criteria with known matches and inspect what Get items returns. Once the basic query works, add criteria one at a time. That makes it easier to spot a misspelled column, mismatched value, or incorrectly joined condition.

Sources

Frequently asked questions

Where do I enter a SharePoint filter query in Power Automate?

In the SharePoint Get items action, open advanced parameters and enter the expression in the Filter Query field.

How do I filter SharePoint items by status?

Use an equality expression such as Status eq 'Approved'. The text value is enclosed in single quotation marks.

How do I combine conditions in a Power Automate filter query?

Join the expressions with and when every condition must be true, such as Status eq 'Approved' and Priority eq 'High Priority'.

What is the difference between a filter query and a condition?

A filter query limits what SharePoint returns to the flow. A condition evaluates records after they have been received by the flow.