CheckInDocument
ドキュメントをチェックインし、他のユーザーが変更できるようにロックを解除します。ドキュメントの更新が適切に追跡されることを確認できます。
Stored Procedure-Specific Information
The CheckInDocument stored procedure checks in a document to a SharePoint document library after it has been checked out. You can optionally upload a new version of the file and add a comment describing the changes.To check in a document with updated content and a comment, enter:
EXEC CheckInDocument File = 'C:\path\to\UpdatedDocument.txt', Library = 'Documents', Comment = 'Updated content', RemoteFile = 'Test Folder 1/Document.txt';
To check in a document without uploading new content, enter:
EXEC CheckInDocument Library = 'Documents', Comment = 'No changes made', RemoteFile = 'Test Folder 1/Document.txt';
Input
| Name | Type | Required | Description |
| File | String | False | チェックイン時にSharePoint 内の既存のドキュメントを上書きするファイルのローカルパス。例:'C:/myfolder/myfile.txt'。 |
| Library | String | True | ファイルが存在するSharePoint サイト上のドキュメントライブラリの名前。例:'Shared Documents'。 |
| Comment | String | False | ドキュメントをチェックインする前に行われた変更を記述するオプションのコメント。 |
| RemoteFile | String | True | SharePoint ドキュメントライブラリ内のファイルの相対URL または完全URL。ファイル名のみが指定された場合、最新バージョンがチェックインされます。 |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | ドキュメントのチェックイン操作が成功したかどうかを示します。成功した場合は'true' を、失敗した場合は'false' を返します。 |