JDBC Driver for Microsoft SharePoint

Build 22.0.8462

MoveAttachmentOrDocument

Moves a document or attachment from source folder to destination folder.

The MoveAttachmentOrDocument stored procedure requires SourceFileURL and DestinationFolderURL parameters to move an attachment or document.

For Example:

EXEC MoveAttachmentOrDocument SourceFileURL = '/Shared Documents/Dummy.txt', DestinationFolderURL = '/Shared Documents/MySite'

Input

Name Type Description
SourceFileURL String URL of the source file, relative to the base Url supplied in the driver's connection properties.

For example:
Root Directory file: /Shared Documents/filename.txt
Sub-directory file:/Shared Documents/MyFolder/filename.txt
If you set the Url connection property to a site collection, the relative URL will correspond with a path on the base site.
If the Url connection property points to a specific site, the relative URL will be relative to the site supplied in the Url.
DestinationFolderURL String URL of the destination folder where you want to move the file ,relative to the base Url supplied in the driver's connection properties.

For example:
Root Directory: /Shared Documents/
Sub-directory:/Shared Documents/MyFolder/
If you set the Url connection property to a site collection, the relative URL will correspond with a path on the base site.
If the Url connection property points to a specific site, the relative URL will be relative to the site supplied in the Url.

Result Set Columns

Name Type Description
Result String Value indicating whether the operation was successful.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462