Skip to main content

Upload File

Description

This activity uploads a local file into a specified Microsoft 365 SharePoint/OneDrive Library.

note

This activity works only inside Microsoft 365 Context activity.

Properties

Location

  • Site Url – Specify the absolute site URL containing the library.
  • Library Name – Specify the library's name into which you upload the file. If left empty default library (Shared Documents) in the site is chosen.
  • Parent Folder Path – Specify the relative path to the parent folder in which the file is to upload.
tip

To upload a file to the library's root, leave this empty.

  • File To Upload – Specify the local path for the file to upload.

  • Upload Mode - Mode of uploading the file in a library if a file with the same name already exists.

OptionDescription
ReplaceThe new file will overwrite the existing file in the library
RenameRename the new file and upload it to the library
FailThe activity will error out if the file already exists

Misc

  • DisplayName – Add a display name to your activity.
  • Private – By default, activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.

Optional

  • Continue On Error – It Specifies whether the automation should continue even though this activity fails. This field only supports Boolean values (True, False). The default value is False.
note

If this Activity is present inside Try Catch and the value of this property is True, it will ignore errors during the automation execution.

Output

  • File Id – Returns the Id of the uploaded file.

Example

Download Example

Upload Files