ODBC Driver for Microsoft SharePoint

Build 25.0.9434

MoveAttachmentOrDocument

Moves an attachment or document from one folder to another within SharePoint. Useful for reorganizing content within a document library.

Execute

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 Required Description
SourceFileURL String True The relative path of the file to be moved. This path is relative to the base URL specified in the SharePoint connection properties.
DestinationFolderURL String True The relative path of the destination folder where the file will be moved. This path is also relative to the base URL specified in the SharePoint connection properties.

Result Set Columns

Name Type Description
Success Boolean Indicates whether the file move operation was successful. Returns 'true' for success and 'false' for failure.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434