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 Type | Permission type | Permission (from least to most privileged) |
---|---|---|
Work or School account | Delegated | Files.ReadWrite, Files.ReadWrite.All, Sites.ReadWrite.All |
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step Name | Specify the name of the step. This name has to be unique in a single workflow. This is a mandatory field. |
Connection: | ||
2 | Client ID | Specify 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. |
3 | Accept value as variable/static | Select 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. |
4 | Refresh Token | Specify or select the Refresh Token generated using ClientID, which is generated after creating App in Azure AD. This is a mandatory field. |
5 | Test Connection | Verifies 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 Name | Description |
---|---|---|
Input Fields | ||
1 | Site Relative URL | Select the SharePoint site-relative URL. Format: {Tenant Name}.sharepoint.com:/[SharePoint Site Path] . Example: firstUser.sharepoint.com:/sites/TestingSite . This is a mandatory field. |
2 | Source Document Library Name | Specify the name of the source Document Library in which the file or folder is present. This is a mandatory field. |
3 | Source File Or Folder Path | Specify 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. |
4 | Destination Document Library Name | Specify the name of the destination Document Library in which the file or folder is to be copied. This is a mandatory field. |
5 | Destination Folder Path | Specify 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 | ||
6 | Create Folder (if not exist) | Create the folder in the specified Document Library if it does not exist. Default value: No . |
7 | File Or Folder Name after Copy | Specify the name of the file or folder after copying. Note: For files, include the extension. |