Skip to content
Microsoft OneDrive

How to use Microsoft OneDrive

Content & filesCost: 1 credit per runTop 100 · #11Full guide

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)

  1. 1Add a Microsoft OneDrive step to your flow.
  2. 2Click "Connect" and sign in with your Microsoft account.
  3. 3Grant the file access Microsoft asks for.
  4. 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.
  5. 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
FieldTypeRequired
Parent FolderList (from your account)No

Actions (6)

Operations available as flow steps. Expand each one to see its fields.

Upload file3 fields
FieldTypeRequired
File nameTextYes
FileFileYes
Parent FolderList (from your account)No
Get File2 fields
FieldTypeRequired
Look Up ByFixed listYes
File ID / File NameTextYes
Copy File5 fields
FieldTypeRequired
Source FolderList (from your account)No
FileList (from your account)Yes
Destination FolderList (from your account)No
New NameTextNo
Conflict BehaviorFixed listYes
List Files1 fields
FieldTypeRequired
Parent FolderList (from your account)No
List Folders1 fields
FieldTypeRequired
Parent FolderList (from your account)No
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

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