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

NameLabelTypeControl TypeDescriptionRequired
clientIdClient IdSTRINGTEXTtrue
clientSecretClient SecretSTRINGTEXTtrue
tenantIdTenant IdSTRINGTEXTtrue

Actions

Download File

Name: downloadFile

Download a file from your Microsoft OneDrive.

Properties

NameLabelTypeControl TypeDescriptionRequired
parentIdParent Folder IDSTRINGSELECTID of the folder from which you want to download the file.false
idFile IDSTRING
Depends On parentId
SELECTID of the file to download.true

Output

Type: FILE_ENTRY

Properties

NameTypeControl Type
extensionSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT
urlSTRINGTEXT

JSON Example

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

List Files

Name: listFiles

List files in a OneDrive folder.

Properties

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

Output

Type: ARRAY

Properties

NameTypeControl Type
OBJECT
Properties {STRING(id), STRING(name)}
OBJECT_BUILDER

JSON Example

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

List Folders

Name: listFolders

List folders in a OneDrive folder.

Properties

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

Output

Type: ARRAY

Properties

NameTypeControl Type
OBJECT
Properties {STRING(id), STRING(name)}
OBJECT_BUILDER

JSON Example

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

Upload File

Name: uploadFile

Upload a file to your Microsoft OneDrive.

Properties

NameLabelTypeControl TypeDescriptionRequired
parentIdParent Folder IDSTRINGSELECTID 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_ENTRYFile to upload.true

Output

Type: OBJECT

Properties

NameTypeControl Type
idSTRINGTEXT
nameSTRINGTEXT

JSON Example

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

Triggers

New File

Name: newFile

Triggers when file is uploaded to folder.

Type: POLLING

Properties

NameLabelTypeControl TypeDescriptionRequired
parentIdParent Folder IDSTRINGSELECTIf no folder is specified, the root folder will be used.false

Output

Type: ARRAY

Properties

NameTypeControl Type
OBJECT
Properties {STRING(id), STRING(name)}
OBJECT_BUILDER

JSON Example

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