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
folderSelectorstringNoSelect the parent folder to create the folder in
manualFolderIdstringNoManually entered parent folder ID (advanced mode)
Output
ParameterTypeDescription
successbooleanWhether the folder was created successfully

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
Text Content*
Text content for the file
Select Parent Folder
Select a parent folder
Parent Folder ID
Enter parent folder ID (leave empty for root folder)
Output
ParameterTypeDescription
filejsonThe OneDrive file object, including details such as id, name, size, and more.
filesjsonAn array of OneDrive file objects, each containing details such as id, name, size, and more.

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)
folderSelectorstringNoSelect the folder to upload the file to
manualFolderIdstringNoManually entered folder ID (advanced mode)
Output
ParameterTypeDescription
successbooleanWhether the file was uploaded successfully

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
folderSelectorstringNoSelect the folder to list files from
manualFolderIdstringNoThe manually entered folder ID (advanced mode)
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

Usage Instructions

Integrate OneDrive into the workflow. Can create text and Excel files, upload files, and list files.

Notes

  • Category: tools
  • Type: onedrive