Search, download, and manage files in your Microsoft OneDrive directly from workflows.
Authentication: OAuth 2.0. Connect your Microsoft account on the integrations page.
Actions
Search Files
Searches for files in OneDrive.
| Input | Required | Description |
|---|---|---|
| Query | Yes | Text to search for in file names and content |
| Output | Type | Description |
|---|---|---|
files | array | File objects with id, name, size, webUrl, lastModifiedDateTime |
List Drives
Returns all drives accessible to the account (personal OneDrive, shared drives).
| Output | Type | Description |
|---|---|---|
drives | array | Drive objects with id, name, driveType |
Download File
Downloads a file from OneDrive.
| Input | Required | Description |
|---|---|---|
| File ID | Yes | OneDrive file ID |
| Output | Type | Description |
|---|---|---|
file | WorkflowFile | The downloaded file |
name | string | File name |
mimeType | string | MIME type of the file |
Create Folder
Creates a new folder in OneDrive.
| Input | Required | Description |
|---|---|---|
| Folder Name | Yes | Name for the new folder |
| Parent Folder ID | No | ID of the parent folder (defaults to root) |
| Drive ID | No | Drive to create the folder in |
| Output | Type | Description |
|---|---|---|
folderId | string | ID of the created folder |
webUrl | string | URL to the folder |
Get Folder by Name
Finds a folder by its name.
| Input | Required | Description |
|---|---|---|
| Folder Name | Yes | Name of the folder to find |
| Parent Folder ID | No | Parent folder to search within |
| Output | Type | Description |
|---|---|---|
folder | object | Folder metadata |
found | boolean | Whether the folder was found |
Was this page helpful?