Skip to main content

Copy File or Folder

Description

Copy File or Folder plugin step copies a file or folder from SharePoint online Document Library source path to a destination Document Library path on SharePoint Online.

Prerequisites

You require the following permissions for app on Azure:

Account TypePermission typePermission (from least to most privileged)
Work or School accountDelegatedFiles.ReadWrite, Files.ReadWrite.All, Sites.ReadWrite.All

Configurations

No.Field NameDescription
1Step NameSpecify the name of the step. This name has to be unique in a single workflow. This is a mandatory field.
Connection:
2Client IDSpecify the Client ID of SharePoint App. For information about creating a client ID, see Appendix: SharePoint: App Registration & Refresh Token Generation. The field data type is String. This is a mandatory field.
3Accept value as variable/staticSelect the checkbox if you want enter the Refresh Token name in the Refresh Token field.

If you do not select the checkbox, then you can select the refresh token in the Refresh Token field.

4Refresh TokenSpecify or select the Refresh Token generated using ClientID, which is generated after creating App in Azure AD.

This is a mandatory field.

5Test ConnectionVerifies whether the connection is established or not.

Note: This connection will not work for the previous step variables. The button will only work with static values and environment variables.

Input Tab

No.Field NameDescription
Input Fields
1Site Relative URLSelect the SharePoint site-relative URL. Format: {Tenant Name}.sharepoint.com:/[SharePoint Site Path].
Example: firstUser.sharepoint.com:/sites/TestingSite.
This is a mandatory field.
2Source Document Library NameSpecify the name of the source Document Library in which the file or folder is present. This is a mandatory field.
3Source File Or Folder PathSpecify the full source path of the file or folder.
Example: 'Folder1/Example_1.txt', 'Folder1/Folder2'.
This is a mandatory field.
Note: The source path must start from the root of the Document Library.
4Destination Document Library NameSpecify the name of the destination Document Library in which the file or folder is to be copied. This is a mandatory field.
5Destination Folder PathSpecify the full destination path of the folder. The path must start from the root of the Document Library.
Example: 'Folder1/Folder2'.
To copy to the root, use '/'.
This is a mandatory field.
Additional Fields
6Create Folder (if not exist)Create the folder in the specified Document Library if it does not exist.
Default value: No.
7File Or Folder Name after CopySpecify the name of the file or folder after copying.
Note: For files, include the extension.