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 Key is required in the Publish Console to access and publish workflows successfully.

Activity Details in Canvas

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

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