OneDrive File Issues

Fix Power Automate Cannot List OneDrive Files or Folders

Nimra MalikNimra Malik Nov 4, 2026 869 views

Question details

The user is unable to view or retrieve files using the OneDrive for Business 'List Files in Folder' action within Power Automate flows.

How to Fix Power Automate Not Listing OneDrive Files or Folders
Product
Power Automate
Device & OS
not provided
Scenario
Automating file management tasks by retrieving a list of contents from a specific OneDrive for Business folder.
Observed behavior
The 'List Files in Folder' action returns empty results, showing no files or folders even when the target OneDrive account contains multiple items.
Before you start

Verify that your Power Automate connection to OneDrive for Business is active and authenticated with an account that has permission to view the target folder.

Solution 1Recommended

Use Folder ID Instead of a Typed File Path

Resolve the issue by selecting the folder directly from the connector to insert its unique ID rather than manually typing the file path.

Power Automate identifies OneDrive folders using unique alphanumeric IDs rather than text-based file paths. If you manually type a file path, the action cannot properly resolve the location, leading to empty results.

OneDrive assigns each file and folder a unique ID that remains unchanged even if the item is later renamed or moved. Using this ID ensures your flow remains stable.

1
Open your Power Automate flow

Navigate to the Power Automate portal, open your specific flow in Edit mode, and locate the 'List Files in Folder' action.

2
Clear manual inputs

Remove any manually typed file paths from the 'Folder' input field within the action card.

3
Use the built-in file browser

Click the small folder icon located on the right side of the 'Folder' input field to open the directory browser.

4
Select the target folder

Navigate through your OneDrive for Business directories using the visual interface and click on your target folder. Power Automate will automatically extract and insert the required unique folder ID.

Use Folder ID Instead of a Typed File Path
Using Dynamic Content: If you are passing the folder dynamically from a previous step (such as 'Create a folder'), ensure you select the 'Id' variable from the dynamic content menu, not the 'Path' or 'Name'.
Free Microsoft Office alternative

Looking for a Seamless Office Experience? Try WPS Office

While Power Automate and OneDrive are great for complex cloud automations, if you need an accessible, lightweight, and completely free suite for your daily document creation and editing, WPS Office is the perfect alternative. It offers powerful tools for word processing, spreadsheets, and presentations with built-in cloud support.

  1. 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the lightweight installer and follow the simple on-screen instructions to set up the suite.
  3. 3. Open existing documents: Launch WPS Office and directly open your existing Microsoft Office files with perfect formatting preservation.
Fully compatible with Microsoft Office formats including DOCX, XLSX, and PPTX.Free and lightweight alternative to resource-heavy productivity suites.Built-in cloud storage options to easily save, share, and manage your files.Familiar, easy-to-use tabbed interface that requires zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does 'List Files in Folder' return nothing when I type the folder path?

Power Automate connector actions for OneDrive rely on unique metadata IDs rather than standard file paths. When a text path is typed, the system does not automatically translate it into the required ID, resulting in the action scanning an unresolvable location and returning no items.

Will moving my OneDrive folder break the Power Automate flow?

No, it will not. If you selected the folder using the folder icon (which inserts the unique folder ID), the flow will continue to work perfectly even if the folder is moved or renamed. The underlying unique ID remains constant.

How do I find a folder ID manually for Power Automate?

You generally don't need to find it manually. Use the folder icon in the action to select the folder visually, or use the 'Get file metadata using path' action in Power Automate to dynamically retrieve the 'Id' property based on a known file path.