Code Assist MCP for Microsoft SharePoint

Build 25.0.9540

DiscardCheckOutDocument

チェックアウトされたドキュメントを最後に保存された状態に戻し、保存されていない変更をキャンセルします。意図しない変更を防ぐのに役立ちます。

Stored Procedure-Specific Information

The DiscardCheckOutDocument stored procedure discards the checkout of a document, reverting any changes made since the document was checked out. The Library parameter specifies the document library name, and the RemoteFile parameter specifies the path to the document.

To execute this procedure, enter:

EXEC DiscardCheckOutDocument Library = 'Documents', RemoteFile = 'Test Folder 1/Document.txt';

Input

Name Type Required Description
Library String True ファイルが保存されているSharePoint ドキュメントライブラリの名前。例:'Shared Documents'。
RemoteFile String True チェックアウトを破棄するファイルのパス。これは、完全なURL('https://yoursharepointsite.com/Shared Documents/report.docx' など)、またはライブラリ内の相対ファイル名です。

Result Set Columns

Name Type Description
Success Boolean チェックアウトが正常に破棄されたかどうかを示します。操作が成功した場合は'true' を返し、それ以外の場合は'false' を返します。

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540