ODBC Driver for Microsoft SharePoint

Build 24.0.9060

MoveAttachmentOrDocument

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

Execute

The MoveAttachmentOrDocument stored procedure requires the SourceFileURL and DestinationFolderURL parameters to rename an attachment or document. The paths specified in SourceFileURL and DestinationFolderURL must be relative to what you have used in Url. Refer to the query example below:

/* URL = https://mysite.sharepoint.com/sites/Subsite */
EXEC MoveAttachmentOrDocument SourceFileURL = '/Shared Documents/Source Folder/Subfolder/Original Document.txt', DestinationFolderURL = '/Destination Library/Destination Folder/';

Input

Name Type Description
SourceFileURL String The path of the source file, relative to the base Url supplied in the driver's connection properties.
DestinationFolderURL String The path of the destination folder where you want to move the file, relative to the base Url supplied in the driver's connection properties.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the operation was successful or not.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060