OneDrive_ItemUpload

Description

This activity allows to upload a file in OneDrive.

Note:

For the activity to work, the reference application in the Azure Portal must have the following API permissions. This activity allows only APPLICATION type permissions (it cannot work with "DELEGATE" ones).
Required permissions:
Files: Files.ReadWrite.All

Sites: Sites.Read.All
Check this page for more information on Azure app API permissions.

Auth

AuthString InArgument<String> REQUIRED

The authorization string to authenticate in MicrosoftGraph service.

It is possible to obtain it using the activity MsGraph_Login. Look at its dedicated page for more details.

Drive

DriveId InArgument<String>

The Id of the drive on which the activity has to work on.


Input File

The file value of the file to upload.

InputFileType EIOFileType

Specify whether you want to upload a locally saved file or an IFileValue.

LocalPath InArgument<String>

The local path of the file to upload.


Remote file

RemoteFilePath InArgument<String> REQUIRED

The remote path where to put the uploaded file.


Response

UploadedItemId OutArgument<String>

The id of the uploaded file.

UploadedItemName OutArgument<String>

The name of the uploaded file.

UploadedItemSize OutArgument<Int64>

The size of the uploaded file.

UploadedItemType OutArgument<String>

The MIME type for the uploaded file.


Settings

ConflictBehavour EConflictBehavour

The default is "fail" so if a file with the name of the file to upload already exists, an exception will be thrown. Use REPLACE if you want to overwrite the existing file or RENAME if you want to keep both (the latter will be renamed, for example, from "name.txt" to "name 1.txt").

Timeout InArgument<TimeSpan>

The maximum time the activity might take to be executed. If it takes longer, an exception will be thrown.


User

UserId InArgument<String>

The id of the Microsoft Account of the owner of the Drive.

It can be found in the result fields of certain activities such as, for example, the owner of a file returned by the OneDrive_ItemGet activity.

UserName InArgument<String>

The email of the Microsoft Account of the owner of the Drive. Example: "mario.rossi@outlook.it".