Excel Add-In for Microsoft SharePoint

Build 24.0.8963

RenameAttachmentOrDocument

Renames a document or attachment.

Execute

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

/* URL = https://mysite.sharepoint.com/sites/Subsite */
EXEC RenameAttachmentOrDocument SourceFileURL = '/Shared Documents/Source Folder/Subfolder/Original Document.txt', NewFileName = 'Renamed Document.txt';

Input

Name Type Description
SourceFileURL String The path of the file you want to rename, relative to the base Url supplied in the add-in's connection properties.
NewFileName String The new name of the file, with a file extension.

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.8963