What it is for
Microsoft OneDrive in flooows lets you upload, copy, look up and list files in Microsoft's cloud storage. It is often used to archive email attachments, store documents produced by other steps or kick off processes when a new file lands in a folder.
The New File trigger is a polling trigger: flooows checks the folder set in Parent Folder every few minutes and starts the flow for each new file it finds.
Set up the connection
Authentication type: OAuth 2.0 (sign in with your account)
- 1Add a Microsoft OneDrive step to your flow.
- 2Click "Connect" and sign in with your Microsoft account.
- 3Grant the file access Microsoft asks for.
- 4If you use your own Azure app, register it in Microsoft Entra with the redirect URL flooows shows and the delegated Graph permissions Files.ReadWrite and offline_access.
- 5Rename the connection if you manage several accounts.
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Upload file: set File name (including the extension) and map File to a file from an earlier step, such as an attachment or a generated PDF; pick a Parent Folder unless you want the root.
- Get File: in Look Up By choose ID or name, then fill File ID / File Name.
- Copy File: select Source Folder and File, the Destination Folder, an optional New Name and the Conflict Behavior for when the file already exists.
- List Files and List Folders return a folder's contents so you can iterate over them in a loop.
- Custom API Call lets you hit any Microsoft Graph endpoint with the same connection.
Tips
- •Include a date or ID in file names to avoid overwrites.
- •Pair New File with AI actions to classify or summarize documents automatically.
- •Pick folders from the dropdown instead of typing paths by hand.
Triggers (1)
Events that can start a flow. Expand each one to see its fields.
New FilePeriodic check1 fields
| Field | Type | Required |
|---|---|---|
| Parent Folder | List (from your account) | No |
Actions (6)
Operations available as flow steps. Expand each one to see its fields.
Upload file3 fields
| Field | Type | Required |
|---|---|---|
| File name | Text | Yes |
| File | File | Yes |
| Parent Folder | List (from your account) | No |
Get File2 fields
| Field | Type | Required |
|---|---|---|
| Look Up By | Fixed list | Yes |
| File ID / File Name | Text | Yes |
Copy File5 fields
| Field | Type | Required |
|---|---|---|
| Source Folder | List (from your account) | No |
| File | List (from your account) | Yes |
| Destination Folder | List (from your account) | No |
| New Name | Text | No |
| Conflict Behavior | Fixed list | Yes |
List Files1 fields
| Field | Type | Required |
|---|---|---|
| Parent Folder | List (from your account) | No |
List Folders1 fields
| Field | Type | Required |
|---|---|---|
| Parent Folder | List (from your account) | No |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
Common errors
Permission denied or expired token
Reconnect the account and accept the permissions again.
Uploaded file is empty or corrupted
Make sure you map the file object, not just its name or URL.
Conflict when copying
Set Conflict Behavior to rename or replace the existing file.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
