Copy File or Folder

Estimated reading: 2 minutes

The Copy File or Folder activity creates a duplicate copy of a specified file or folder at a destination location within SharePoint.

Prerequisites

A valid project must exist in the Publish Console before you can access and publish workflows.

Activity Details in Canvas

SharePoint*: Select the account from the available connections. The selected account is used to authenticate with and access SharePoint.

Note: Before using the SharePoint activity, make sure the following prerequisites are met:

a. The project has been added under the Publish option.
b. The SharePoint Connector is connected on the Manager side.

Once both conditions are met, the SharePoint activity loads and connects, allowing you to perform the supported SharePoint operations.

File Or Folder To Copy: Select the file or folder to copy from the document library. You can choose an item from the available list.

Destination Folder: Select the destination folder in the document library where the file or folder will be copied.

New Name: Enter the name of the new folder. You can enter the folder name directly as text or provide a String variable containing the folder name.

Properties

INPUT

If file already exists: Select how to handle a file with the same name in the destination folder:
Replace: Overwrite the existing file.
Don’t Replace: Skip the operation and keep the existing file unchanged.
Auto Rename: Automatically rename the new file to avoid a naming conflict.

MISC

DisplayName: Specifies the display name of the activity. This value can be customized to improve workflow readability and troubleshooting.

SkipOnError: Specifies whether the workflow execution should continue when the activity encounters an error.
True: The workflow continues execution even if an error occurs.
False: The workflow stops execution when an error occurs.
None: The default value is set to False.

Version: Displays the current version of the activity.

OUTPUT

First Or Folder (o365DriveRemoteItem): Specify a variable to store the details of the copied or moved file/folder. The variable is populated after the activity executes successfully and can be used to access the item’s information in later workflow steps.

Result: Returns a Boolean value indicating the execution status of the activity.
True: The activity executed successfully.
False: The activity failed due to an unexpected error.

Share this Doc

Copy File or Folder

Or copy link

CONTENTS
Robility Chatbot
Robility Assistant
Online