OneDrive
Create, upload, and list files
Configuration
Create Folder
Operation
Create Folder
Microsoft Account
Select Microsoft account
Folder Name
Name for the new folder
Select Parent Folder
Select a parent folder
Parent Folder ID
Enter parent folder ID (leave empty for root folder)
Create Folder (
onedrive_create_folder)Create a new folder in OneDrive
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
folderName | string | Yes | Name of the folder to create |
folderId | string | No | Parent folder ID to create the folder in |
Output
| 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 |
Create File
Operation
Create File
Microsoft Account
Select Microsoft account
File Name*
Name of the file
File Type*
Select file type
Values
Enter values as JSON array of arrays (e.g., [["A1","B1"],["A2","B2"]]) or an array of objects
Shown when mimeType is 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'.
Text Content
Text content for the file
Shown when mimeType is 'text/plain'.
Select Parent Folder
Select a parent folder
Parent Folder ID
Enter parent folder ID (leave empty for root folder)
Create File (
onedrive_upload)Upload a file to OneDrive
Input
| 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) |
folderId | string | No | Folder ID to upload the file to |
Output
| 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 |
Upload File
Operation
Upload File
Microsoft Account
Select Microsoft account
File Name*
Name of the file
File
Upload a file
File
Reference file from previous block (e.g., {{block_1.file}})
Select Parent Folder
Select a parent folder
Parent Folder ID
Enter parent folder ID (leave empty for root folder)
Upload File (
onedrive_upload)Upload a file to OneDrive
Input
| 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) |
folderId | string | No | Folder ID to upload the file to |
Output
| 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 |
List Files
Operation
List Files
Microsoft Account
Select Microsoft account
Select Folder
Select a folder to list files from
Folder ID
Enter folder ID (leave empty for root folder)
Search Query
Search for specific files (e.g., name contains "report")
Results Per Page
Number of results (default: 100, max: 1000)
List Files (
onedrive_list)List files and folders in OneDrive
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
folderId | string | No | The folder ID to list files from |
query | string | No | A query to filter the files |
pageSize | number | No | The number of files to return |
Output
| 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) |
Usage Instructions
Integrate OneDrive into the workflow. Can create text and Excel files, upload files, and list files.
Notes
- Category:
tools - Type:
onedrive