MoveAttachmentOrDocument
SharePoint 内のあるフォルダから別のフォルダに添付ファイルまたはドキュメントを移動します。ドキュメントライブラリ内のコンテンツを再編成するのに役立ちます。SourceFileURL およびDestinationFolderURL で指定されるパスは、URL 接続プロパティで使用したものに対する相対パスである必要があります。
Stored Procedure-Specific Information
Examples of how to execute this procedure follow.To move a document to a different folder within the same library:
/* URL = https://mysite.sharepoint.com/sites/Subsite */ EXEC MoveAttachmentOrDocument SourceFileURL = '/Shared Documents/Source Folder/Subfolder/Original Document.txt', DestinationFolderURL = '/Destination Library/Destination Folder/';
To move a document within the same library:
/* URL = https://mysite.sharepoint.com */ EXEC MoveAttachmentOrDocument SourceFileURL = '/Shared Documents/Dummy_000 2.txt', DestinationFolderURL = '/Shared Documents/';
To move a document in a subsite collection:
/* URL = https://mysite.sharepoint.com/sites/Subsite */ EXEC MoveAttachmentOrDocument SourceFileURL = 'Shared Documents/Test Folder 1/Test Nested Folder 1/Test Document.txt', DestinationFolderURL = 'Shared Documents/Test Folder 2/';
Input
| Name | Type | Required | Description |
| SourceFileURL | String | True | 移動するファイルの相対パス。このパスはSharePoint 接続プロパティで指定されたベースURL に対する相対パスです。 |
| DestinationFolderURL | String | True | ファイルが移動される宛先フォルダの相対パス。このパスもSharePoint 接続プロパティで指定されたベースURL に対する相対パスです。 |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | ファイルの移動操作が成功したかどうかを示します。成功の場合は'true'、失敗の場合は'false' を返します。 |