Workflows
Blocks
Integrations
Microsoft OneDrive

Microsoft OneDrive

The Microsoft OneDrive block manages files and folders in OneDrive from your workflow — upload, download, copy, delete, search, share, and organize content automatically.

File Automation: Save a generated report to the right folder, share it with a view-only link, and hand the link to the next block — all without opening OneDrive.

⚠️

Microsoft OneDrive is not available on the Free plan. Upgrade your workspace plan to use this block.

Key Features

  • File Operations: Upload, download, delete, copy, and search files
  • Folder Management: Create and delete folders, and list folder contents
  • Sharing: Create view, edit, or embed links, scoped to anyone or your organization
  • File Metadata: Read a file's name, size, type, and modification dates
  • Response Mapping: Save file IDs, URLs, and results into workflow variables
  • Variable Support: Use {{variables}} in file names, content, and queries

Operations

OperationWhat it doesMain fields
Upload FileUploads a file from text content or a URLParent folder ID, file name, file content or file URL
Download FileDownloads a file by IDFile ID
Delete FileDeletes a fileFile ID
Copy FileCopies a file to another folder, optionally renaming itFile ID, destination folder ID, new name
Search FilesSearches your OneDrive by queryQuery, max results (1–200, default 25)
Share FileCreates a sharing link for a fileFile ID, share type, share scope
Get File InfoReads a file's metadataFile ID
Create FolderCreates a folderFolder name, parent folder ID
Delete FolderDeletes a folderFolder ID
List Folder ContentsLists the items inside a folderFolder ID
Share FolderCreates a sharing link for a folderFolder ID, share type, share scope

Sharing options

OptionValuesDescription
Share typeview, edit, embedWhat the link allows
Share scopeanonymous, organizationAnyone with the link, or only people in your organization

Configuration

ParameterTypeRequiredDescription
Microsoft accountCredentialYesThe connected OneDrive account
ActionSelectYesOne of the operations above
Action fieldsVariesPer actionSee the operations table — each action shows only its own fields
Response mappingValue → VariableNoSave response values into workflow variables

Leave Parent folder ID empty to work in the root of your OneDrive. Get folder and file IDs from List Folder Contents, Search Files, or a previous block's response mapping.


Setting up the credential

  1. In the block settings, click Continue with Microsoft.
  2. Sign in with your Microsoft 365 or personal Microsoft account.
  3. Approve the requested file permissions.
  4. The credential is created automatically and appears in the dropdown.

Example: weekly report archive

  1. A Schedule Trigger runs every Friday at 5 PM.
  2. A Generate Document block produces the weekly report PDF and outputs its URL.
  3. A OneDrive block with Upload File saves it as report-{{week}}.pdf into your Reports folder, mapping File Id to a variable.
  4. A second OneDrive block with Share File (type view, scope organization) creates a link, and a Teams block posts it to the team channel.

Output

Use Response mapping to extract values into variables:

ValueDescription
File Id / File Name / File Size / Mime TypeThe file's identity and metadata
Web UrlBrowser link to the item
Download UrlDirect download link
Created Date / Modified DateTimestamps
Parent PathThe item's folder path
Share LinkThe sharing URL (Share File / Share Folder)
Folder Id / Folder NameFolder identity (folder operations)
Children / Children CountItems in a folder (List Folder Contents)
Search ResultsMatching items (Search Files)
SuccessWhether the operation succeeded
Full DataThe complete raw API response
Indite Documentation v1.7.1
PrivacyTermsSupport