Move File or Folder
Description
Move File or Folder plugin moves a file or folder from source path to destination path in same Document Library present in a specified site in 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 |
Configuration
No. | Field Name | Description |
---|---|---|
1 | Step Name | Specify the name of the step. This name must be unique within a single workflow. This is a mandatory step. |
Connection: | ||
2 | Client ID | Specify the Client ID of the 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 to enter the Refresh Token name in the Refresh Token field. If the checkbox is not selected, you can select the refresh token from the Refresh Token field. |
4 | Refresh Token | Specify or select the Refresh Token generated using the Client ID, which is created after registering the app in Azure AD. This is a mandatory field. |
5 | Test Connection | Verifies whether the connection is successfully established. Note: This connection will not work with variables from the previous step. The Test Connection button only works with static values and environment variables. |
Input Tab
No. | Field Name | Description |
---|---|---|
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. Note: For the root site (Communication Site), the {SharePoint Site Path} is not required. |
2 | Document Library Name | Select the name of the Document Library in which the file or folder is present. This is a mandatory field. |
3 | Source File or Folder Path | Select the full source path (from the root of the Document Library). Example: Folder1/Example_1.txt , Folder1/Folder2 This is a mandatory field. |
4 | Destination Folder Path | Select the full destination path of the folder (from the root of the Document Library). Example: Folder1/Folder2 To move to the root, specify the path as / . This is a mandatory field. |
Additional Input Tab
No. | Field Name | Description |
---|---|---|
1 | Create Folder (if not exist) | Select this option if you want to create the folder in the specified Document Library in case it does not exist. |
2 | File Or Folder Name after Move | Specify the name of the moved file or folder. Note: In case of a file, provide the full name including the extension. |