Help Desk

Submit a ticket My Tickets
Welcome
Login

Microsoft OneDrive Command Reference

Connector to Microsoft OneDrive for executing file and folder operations. This connector utilizes the Microsoft Graph OData API.

Connections

Microsoft OneDrive

A connector that uses OAuth2 to connect to the Microsoft Graph API via an Azure App.

Inputs

Input Type Detail Notes
Drive Type DropdownField The type to use to get the default Drive for the connection. This is the drive that will be used for all of the operations.
Drive Type ID TextField This is the ID for the selected Drive Type. If User is selected, the User Id, if Site, the Site Id etc.

Commands

Copy Item

Copies a file or folder to a new location.

Inputs

Input Type Detail Notes
Path to Item TextField The path to the item to copy.
Parent Path TextField The path to create the folder in.
New Name TextField The name to use for the newly created item, if blank defaults to the current name.
Delete Original BooleanField If checked, will delete the original item being copied.

Outputs

Output Output Type Notes
New Path String

Exit Codes

Code Type Detail
0 Success Success
1 Error Error executing command
2 Error Error authenticating

Create Folder

Creates a folder in the specified parent location. If a nested path is specified, each item in the path will be created if it doesn't exist already

Inputs

Input Type Detail Notes
Parent Path TextField The path to create the folder in.
Folder Name TextField The folder name, if a nested path is specified such as (my/new/folder) each folder in the path will be created.
Conflict Behavior DropdownField The action to take if there is a conflict with each folder in the folder name.

Outputs

Output Output Type Notes
Folder File

Exit Codes

Code Type Detail
0 Success Success
1 Error Error executing command
2 Error Error authenticating

Delete Item

Deletes a file or folder from a drive.

Inputs

Input Type Detail Notes
Path TextField The path to the file to download

Outputs

None

Exit Codes

Code Type Detail
0 Success Success
1 Error Error executing command
2 Error Error authenticating

Download File

Downloads a file from the specified path.

Inputs

Input Type Detail Notes
Path TextField The path to the file to download

Outputs

Output Output Type Notes
Downloaded File File

Exit Codes

Code Type Detail
0 Success Success
1 Error Error executing command
2 Error Error authenticating

List Drives

List available drives to a user, site, or group.

Inputs

Input Type Detail Notes
Entity Type DropdownField The type of entity to list the drives for.
Id TextField The Id of the entity selected, drives will be listed for this entity. For the Current User this input is ignored.

Outputs

Output Output Type Notes
Drives File
Drive Count Integer

Exit Codes

Code Type Detail
0 Success Success
1 Error Error executing command
2 Error Error authenticating

Search

Search for files and folders.

Inputs

Input Type Detail Notes
Path TextField The path to search, leave empty to search from the root directory.
Query TextField The query to execute, if empty will return all items at the path.

Outputs

Output Output Type Notes
First Result File
Search Results File
Search Result Count Integer

Exit Codes

Code Type Detail
0 Success Success
1 Error Error executing command
2 Error Error authenticating

Upload File

Uploads a file to the specified path.

Inputs

Input Type Detail Notes
File FileField The file to upload.
Upload Path TextField The path to upload the file to. This MUST include the name of file to be created on the drive.
Properties GroupField Additional properties for the upload.

Outputs

None

Exit Codes

Code Type Detail
0 Success Success
1 Error Error executing command
2 Error Error authenticating
B
Brian is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.