activities
latest
false
Productivity Activities
Last updated Oct 23, 2024

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 White
Trust and Security
© 2005-2024 UiPath. All rights reserved.