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

Productivity Activities

Last updated Dec 6, 2024

CopyFolder

Copies a folder to the specified destination folder in OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Syntax

IFolder CopyFolder(
	IFolder folder,
	IFolder destination = null,
	string newName = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Fail
)IFolder CopyFolder(
	IFolder folder,
	IFolder destination = null,
	string newName = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Fail
)

Parameters

folder IFolder
The folder to copy.
destination IFolder (Optional)
The destination folder where to copy the specified folder. If not specified, it defaults to OneDrive root folder.
newName String (Optional)
An optional name given to the copied folder. If left blank, the copy retains the original name.
conflictBehavior ConflictBehavior (Optional)
What is the expected behavior when a folder with the same name already exists in the destination folder.

Return value

IFolder - The copied folder.
  • Syntax
  • Parameters
  • Return value

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.