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.
| Parameter | Type | Required | Description |
|---|
fileName | string | Yes | The name of the file to upload (e.g., "report.pdf", "data.xlsx") |
file | file | No | No description |
content | string | No | No description |
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 | Folder ID to upload the file to (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M") |
manualFolderId | string | No | No description |
| 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 |
| Parameter | Type | Required | Description |
|---|
folderName | string | Yes | Name of the folder to create (e.g., "My Documents", "Project Files") |
folderSelector | string | No | Parent folder ID to create the folder in (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M") |
manualFolderId | string | No | No description |
| 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 |
| Parameter | Type | Required | Description |
|---|
fileId | string | Yes | The ID of the file to download (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M") |
fileName | string | No | Optional filename override (e.g., "report.pdf", "data.xlsx") |
| Parameter | Type | Description |
|---|
file | file | Downloaded file stored in execution files |
| Parameter | Type | Required | Description |
|---|
folderSelector | string | No | Folder ID to list files from (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M") |
manualFolderId | string | No | No description |
query | string | No | Filter files by name prefix (e.g., "report", "invoice_2024") |
pageSize | number | No | No description |
| 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) |
| Parameter | Type | Required | Description |
|---|
fileId | string | Yes | The ID of the file or folder to delete (e.g., "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36M") |
| 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 |