ADO.NET Provider for Microsoft SharePoint

Build 26.0.9770

MoveAttachmentOrDocument

Moves an attachment or document from one folder to another within SharePoint. Useful for reorganizing content within a document library. The paths specified in SourceFileURL and DestinationFolderURL must be relative to what you have used in URL connection property.

Stored Procedure-Specific Information

To execute this procedure, enter:
EXEC MoveAttachmentOrDocument SourceFileURL='/Shared Documents/my_file.txt', DestinationFolderURL='/Shared Documents/MySubFolder/'

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) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770