CopyDocument
Copies a file from one location to another within a SharePoint document library. Facilitates content duplication and backup processes.
Stored Procedure-Specific Information
To execute this procedure, enter:EXEC CopyDocument SourceFileRelativeUrl = '/Shared Documents/Cdata/hello1.txt', DestFileRelativeUrl = '/Shared Documents/qqqq/hello2.txt'
Input
| Name | Type | Required | Description |
| SourceFileRelativeUrl | String | True | The server-relative URL of the source file to be copied. Specifies the original location of the document. |
| DestFileRelativeUrl | String | True | The server-relative URL where the copied file will be placed. Defines the new location of the document. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the document copy operation was successful. Returns 'true' for success and 'false' for failure. |