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

Productivity Activities

Last updated Dec 6, 2024

Copy File/Folder

UiPath.MicrosoftOffice365.Activities.Files.CopyItemConnections

Description

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

Project compatibility

Windows | Cross-platform

Configuration

  • Microsoft OneDrive & SharePoint - The connection for the Office 365 account to use in the activity.
  • File or folder to copy - The specific file or folder to copy. Browse the OneDrive or SharePoint folders and select the file or folder. Use the Plusdocs image button menu to use a variable as the input mode. This field accepts IResource input.
  • Destination folder - The folder where to copy the specified file or folder. If no folder is selected, the default option is the OneDrive root folder. Browse the OneDrive or SharePoint folders and select the file or folder. Use the Plusdocs image button menu to use a variable as the input mode. This field accepts IResource input.
  • New name - An optional new name for the copied file or folder. If left blank, the copy keeps its original name. This property supports String variables and string formatted values.
  • If file/folder already exists - The expected behavior when a file/folder with the same name already exists in the destination folder. Choose one of the available options from the dropdown menu:
    • Don't replace - Fails if an existing item is found. Default option.
    • Auto rename - Auto renames the new item by appending a number.
    • Replace - Replaces the existing item. Fails if multiple items with the same name exists.

Additional options

Output

  • Copied file or folder - Reference to the copied file or folder retrieved by the activity for use in other activities.

Example



See also
  • Description
  • Project compatibility
  • Configuration
  • Example

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.