Skip to main content
Use OneDrive to start a flow when a file lands in a folder, and to work with files and folders from inside a flow. This flow files every new invoice under Invoices/2026 and creates a link your organisation can open. Press Run to watch it. Every trigger and node needs a OneDrive connection, signed in with OAuth or a service principal. See Connect Microsoft 365 to set one up.

Triggers

The trigger checks the folder every minute. Only files created directly in the folder after you save the trigger start a flow: files already there, files moved in, and files added to subfolders never do. Pass file_id to the nodes below with Source set to By ID.

Nodes

Most nodes point at a file or folder through Source: Pick from OneDrive to choose it in the editor, By ID to bind an ID such as file_id, or By path for a path from the root of your OneDrive, such as Reports/2024/Q1/file.pdf.

Troubleshooting

Only files created directly in the watched folder after the trigger was saved start a flow. Files moved in from elsewhere, and files added to a subfolder, do not.
OneDrive could not be read on this check. The trigger tries again on the next check, a minute later.
The trigger could not download the new file. If OneDrive was limiting requests or slow, it tries again. If the file was removed from OneDrive first, there is nothing left to download.
Reconnect OneDrive and run the flow again. See Connect Microsoft 365.
Uploading, updating, moving, deleting and sharing need write access. Reconnect OneDrive with Read & write files.
Check the ID or the path. A path starts at the root of your OneDrive, such as Reports/2024/file.pdf.
A variable bound to the path or ID was empty when the node ran. Only Write, List and Create Folder accept an empty path, which means the root.
Give the item a New name, or move or delete the item that is already there.
Update OneDrive File replaces a file’s content. Point it at a file, not a folder.
Your organisation may not allow sharing with people outside it, or they may need to be added as a guest first.
Fix the listed addresses in Email addresses. Separate several addresses with commas.
Wait a few minutes and run the flow again.