Fix Power Automate Cannot List OneDrive Files or Folders
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.

- 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.
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.
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.
Navigate to the Power Automate portal, open your specific flow in Edit mode, and locate the 'List Files in Folder' action.
Remove any manually typed file paths from the 'Folder' input field within the action card.
Click the small folder icon located on the right side of the 'Folder' input field to open the directory browser.
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.

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. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the lightweight installer and follow the simple on-screen instructions to set up the suite.
- 3. Open existing documents: Launch WPS Office and directly open your existing Microsoft Office files with perfect formatting preservation.

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.




