activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity activities

Last updated Feb 19, 2026

UploadFiles

Uploads the specified files to OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

Assembly: UiPath.MicrosoftOffice365.Activities.Api (in UiPath.MicrosoftOffice365.Activities.Api.dll)

Overloads

OverloadDescription
UploadFiles(IEnumerable<String>, IFolder, ConflictBehavior, DataTable)Uploads the files from the specified local paths to OneDrive or SharePoint.
UploadFiles(IEnumerable<IResource>, IFolder, ConflictBehavior, DataTable)Uploads the specified files to OneDrive or SharePoint.

UploadFiles(IEnumerable<String>, IFolder, ConflictBehavior, DataTable)

Uploads the files from the specified local paths to OneDrive or SharePoint.

IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<String> paths,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)
IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<String> paths,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)

paths IEnumerable<String> : The local paths of the files to upload.

destination IFolder (Optional) : The destination folder where to upload the files. If not specified, it defaults to OneDrive root folder.

conflictBehavior ConflictBehavior (Optional) : Indicates the conflict resolution behavior in case files with the same name already exist.

metadata DataTable (Optional) : The metadata to associate with the uploaded files. It works only for files stored in a SharePoint document library. It should contain two columns, the first one representing the display name of the field (String) and the second its value (Object).

UploadFiles(IEnumerable<IResource>, IFolder, ConflictBehavior, DataTable)

Uploads the specified files to OneDrive or SharePoint.

IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<IResource> files,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)
IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<IResource> files,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)

files IEnumerable<IResource> : The files to upload.

destination IFolder (Optional) : The destination folder where to upload the files. If not specified, it defaults to OneDrive root folder.

conflictBehavior ConflictBehavior (Optional) : Indicates the conflict resolution behavior in case files with the same name already exist.

metadata DataTable (Optional) : The metadata to associate with the uploaded files. It works only for files stored in a SharePoint document library. It should contain two columns, the first one representing the display name of the field (String) and the second its value (Object).

Return value

IReadOnlyCollection<IFile> - The list of uploaded files.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.