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

Productivity Activities

Last updated Dec 6, 2024

Move File/Folder

UiPath.MicrosoftOffice365.Activities.Files.MoveItemConnections

Description

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

How it works

This activity can call different APIs, as follows:

  • If the driveId of the file to move equals the driveId of the Destination folder, the Move item API is used
  • If the driveId of the file to move does not equal the driveId of the Destination folder, the Copy item and Delete item are used (the original file is deleted and replaced by its copy in the destination folder).

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 move - The specific file or folder to move. Browse the OneDrive or SharePoint folders and select the file or folder. This field accepts IResource input. Use the Plusdocs image button menu to use a variable as the input mode.
  • Destination folder - The folder where to move 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. This field accepts IResource input. Use the Plusdocs image button menu to use a variable as the input mode.
  • New name - An optional new name for the moved file or folder. If left blank, the file or folder keeps its original name. This property supports String variables and string formatted values.
Additional options

Output

  • Moved file or folder - Reference to the moved 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.