Tools
OneDrive
Create, upload, download, list, and delete files
Integrate OneDrive into the workflow. Can create text and Excel files, upload files, download files, list files, and delete files or folders.
Upload a file to OneDrive
| Parameter | Type | Required | Description |
|---|
fileName | string | Yes | The name of the file to upload |
file | file | No | The file to upload (binary) |
content | string | No | The text content to upload (if no file is provided) |
mimeType | string | No | The MIME type of the file to create (e.g., text/plain for .txt, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for .xlsx) |
folderSelector | string | No | Select the folder to upload the file to |
| Parameter | Type | Description |
|---|
success | boolean | Whether the file was uploaded successfully |
file | object | The uploaded file object with metadata including id, name, webViewLink, webContentLink, and timestamps |
Create a new folder in OneDrive
| Parameter | Type | Required | Description |
|---|
folderName | string | Yes | Name of the folder to create |
folderSelector | string | No | Select the parent folder to create the folder in |
| Parameter | Type | Description |
|---|
success | boolean | Whether the folder was created successfully |
file | object | The created folder object with metadata including id, name, webViewLink, and timestamps |
Download a file from OneDrive
| Parameter | Type | Required | Description |
|---|
fileId | string | Yes | The ID of the file to download |
fileName | string | No | Optional filename override |
| Parameter | Type | Description |
|---|
file | file | Downloaded file stored in execution files |
List files and folders in OneDrive
| Parameter | Type | Required | Description |
|---|
folderSelector | string | No | Select the folder to list files from |
query | string | No | A query to filter the files |
pageSize | number | No | The number of files to return |
| Parameter | Type | Description |
|---|
success | boolean | Whether files were listed successfully |
files | array | Array of file and folder objects with metadata |
nextPageToken | string | Token for retrieving the next page of results (optional) |
Delete a file or folder from OneDrive
| Parameter | Type | Required | Description |
|---|
fileId | string | Yes | The ID of the file or folder to delete |
| Parameter | Type | Description |
|---|
success | boolean | Whether the file was deleted successfully |
deleted | boolean | Confirmation that the file was deleted |
fileId | string | The ID of the deleted file |
- Category:
tools
- Type:
onedrive