CheckOutDocument
Checks out a document from a SharePoint library, locking it for editing. Prevents conflicts when multiple users need to work on the same file.
Stored Procedure-Specific Information
The CheckOutDocument stored procedure checks out a document from a SharePoint document library, preventing other users from editing it. The Library parameter specifies the document library name, and the RemoteFile parameter specifies the path to the document.To execute this procedure, enter:
EXEC CheckOutDocument Library = 'Documents', RemoteFile = 'Test Folder 1/Document.txt';
Input
| Name | Type | Required | Description |
| Library | String | True | The name of the document library on the SharePoint site where the file resides. Example: 'Shared Documents'. |
| RemoteFile | String | True | The relative or full URL of the file in the SharePoint document library that you want to check out. If only the file name is provided, it is checked out from the default location. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the document check-out operation was successful. Returns 'true' for success and 'false' for failure. |