Skip to content

Microsoft OneDrive

Microsoft OneDrive is a cloud storage service provided by Microsoft for storing, accessing, and sharing files online.

Categories: file-storage

Type: microsoftOneDrive/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue
tenantIdTenant IdSTRINGtrue

Actions

Download File

Name: downloadFile

Download a file from your Microsoft OneDrive.

Properties

NameLabelTypeDescriptionRequired
parentIdParent Folder IDSTRINGID of the folder from which you want to download the file.false
idFile IDSTRING
Depends On parentId
ID of the file to download.true

Example JSON Structure

{
"label" : "Download File",
"name" : "downloadFile",
"parameters" : {
"parentId" : "",
"id" : ""
},
"type" : "microsoftOneDrive/v1/downloadFile"
}

Output

Type: FILE_ENTRY

Properties

NameTypeDescription
extensionSTRING
mimeTypeSTRING
nameSTRING
urlSTRING

Output Example

{
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
}

List Files

Name: listFiles

List files in a OneDrive folder.

Properties

NameLabelTypeDescriptionRequired
parentIdParent Folder IDSTRINGID of the folder from which you want to list files. If no folder is specified, the root folder will be used.false

Example JSON Structure

{
"label" : "List Files",
"name" : "listFiles",
"parameters" : {
"parentId" : ""
},
"type" : "microsoftOneDrive/v1/listFiles"
}

Output

Type: ARRAY

Items Type: OBJECT

Properties

NameTypeDescription
idSTRING
nameSTRING

Output Example

[ {
"id" : "",
"name" : ""
} ]

List Folders

Name: listFolders

List folders in a OneDrive folder.

Properties

NameLabelTypeDescriptionRequired
parentIdParent Folder IDSTRINGID of the Folder from which you want to list folders. If no folder is specified, the root folder will be used.false

Example JSON Structure

{
"label" : "List Folders",
"name" : "listFolders",
"parameters" : {
"parentId" : ""
},
"type" : "microsoftOneDrive/v1/listFolders"
}

Output

Type: ARRAY

Items Type: OBJECT

Properties

NameTypeDescription
idSTRING
nameSTRING

Output Example

[ {
"id" : "",
"name" : ""
} ]

Upload File

Name: uploadFile

Upload a file to your Microsoft OneDrive.

Properties

NameLabelTypeDescriptionRequired
parentIdParent Folder IDSTRINGID of the Folder where the file should be uploaded; if no folder is selected, the file will be uploaded in the root folder.false
fileFileFILE_ENTRYFile to upload.true

Example JSON Structure

{
"label" : "Upload File",
"name" : "uploadFile",
"parameters" : {
"parentId" : "",
"file" : {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
}
},
"type" : "microsoftOneDrive/v1/uploadFile"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRING
nameSTRING

Output Example

{
"id" : "",
"name" : ""
}

Triggers

New File

Name: newFile

Triggers when file is uploaded to folder.

Type: POLLING

Properties

NameLabelTypeDescriptionRequired
parentIdParent Folder IDSTRINGIf no folder is specified, the root folder will be used.false

Output

Type: ARRAY

Items Type: OBJECT

Properties

NameTypeDescription
idSTRING
nameSTRING

JSON Example

{
"label" : "New File",
"name" : "newFile",
"parameters" : {
"parentId" : ""
},
"type" : "microsoftOneDrive/v1/newFile"
}