Others

Fix Power Automate Get Files OData Filter Returning No SharePoint Files

Amos GikundaAmos Gikunda Nov 3, 2026 869 views

Question details

The user is unable to retrieve files from a SharePoint document library because the OData filter in the Power Automate Get Files action yields no results when querying a custom date column.

Fix Power Automate Get Files OData Filter Returning No SharePoint Files
Product
Power Automate
Device & OS
not provided
Scenario
Filtering a SharePoint document library based on a custom date column using the 'Get Files (properties only)' action in a Power Automate flow.
Observed behavior
The flow runs successfully but the Get Files action returns an empty array, failing to match any existing SharePoint files.
Before you start

Ensure you have the appropriate permissions to view the SharePoint document library settings and edit the Power Automate flow.

Solution 1Recommended

Use the SharePoint Internal Column Name

OData filters in Power Automate require the SharePoint internal column name rather than the display name visible in the library.

When a custom column is created in SharePoint, spaces and special characters are converted into encoded formats (like _x0020_ for spaces). The OData filter query will fail silently and return zero results if the display name is used instead of this internal name.

1
Access SharePoint Library Settings

Navigate to your SharePoint document library. Click the Gear icon in the top right corner and select 'Library settings', then click 'More library settings'.

2
Locate the Custom Column

Scroll down to the 'Columns' section and click on the custom date column you are trying to filter by.

3
Find the Internal Name

Look at the URL in your browser's address bar. At the very end of the URL, locate the text after 'Field='. This text is the internal column name.

4
Update the OData Filter

Open your Power Automate flow, expand the 'Get files (properties only)' action, and replace the display name in the Filter Query field with the exact internal name you found (e.g., use FileLeafRef instead of Name for file names).

Use the SharePoint Internal Column Name
Tip: For standard system columns like 'Name', the internal name is 'FileLeafRef'. Using this in your filter query will instantly resolve empty array issues related to file name filtering.
Free Microsoft Office alternative

Switch to WPS Office for a Streamlined Document Experience

While Power Automate and SharePoint are designed for managing complex enterprise workflows, you still need a reliable suite to edit the documents themselves. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office for creating, editing, and saving your files.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded file and follow the quick installation prompts to set up the suite.
  3. 3. Open Your Documents: Launch WPS Office and instantly open your existing Microsoft Office files without losing any formatting.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx) stored in your SharePoint libraries.Lightweight application that uses minimal system resources and installs in seconds.Free to use with a familiar, easy-to-navigate user interface.Built-in PDF editing tools to seamlessly manage and annotate your professional workflows.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my OData filter work with default columns but fail on custom ones?

Default columns often have identical internal and display names, whereas custom columns in SharePoint almost always differ if they contain spaces or special characters. Power Automate strictly requires the internal name for backend queries.

What does FileLeafRef mean in a Power Automate filter?

FileLeafRef is the technical internal SharePoint name for a document's filename, including its file extension (e.g., document.docx). When filtering files by name in the 'Get files' action, you must use FileLeafRef instead of 'Name'.

Where can I get additional help for complex Power Automate queries?

If verifying the internal column name does not resolve your issue, you can post a screenshot of your flow setup and filter query in the official Microsoft Power Automate Community forums, where specialists can provide advanced syntax troubleshooting.