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
ParameterTypeRequiredDescription
folderNamestringYesName of the folder to create
folderIdstringNoParent folder ID to create the folder in
Output
ParameterTypeDescription
successbooleanWhether the folder was created successfully
fileobjectThe 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
ParameterTypeRequiredDescription
fileNamestringYesThe name of the file to upload
filefileNoThe file to upload (binary)
contentstringNoThe text content to upload (if no file is provided)
mimeTypestringNoThe MIME type of the file to create (e.g., text/plain for .txt, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for .xlsx)
folderIdstringNoFolder ID to upload the file to
Output
ParameterTypeDescription
successbooleanWhether the file was uploaded successfully
fileobjectThe 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
ParameterTypeRequiredDescription
fileNamestringYesThe name of the file to upload
filefileNoThe file to upload (binary)
contentstringNoThe text content to upload (if no file is provided)
mimeTypestringNoThe MIME type of the file to create (e.g., text/plain for .txt, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for .xlsx)
folderIdstringNoFolder ID to upload the file to
Output
ParameterTypeDescription
successbooleanWhether the file was uploaded successfully
fileobjectThe 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
ParameterTypeRequiredDescription
folderIdstringNoThe folder ID to list files from
querystringNoA query to filter the files
pageSizenumberNoThe number of files to return
Output
ParameterTypeDescription
successbooleanWhether files were listed successfully
filesarrayArray of file and folder objects with metadata
nextPageTokenstringToken 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