Cmdlets for Microsoft SharePoint

Build 24.0.9175

RenameAttachmentOrDocument

Renames a document or attachment.

Input

Name Type Required Description
List String True Name of the list containing the document or attachment you would like to rename.
SourceFileURL String True URL of the file you want to rename, relative to the base RSBSharePoint_p_URL supplied in the cmdlet's connection properties.

For example:
Root Directory file: /Shared Documents/filename.txt
Sub-directory file:/Shared Documents/MyFolder/filename.txt
If you set the RSBSharePoint_p_URL connection property to a site collection, the relative URL corresponds with a path to the base site.
If the RSBSharePoint_p_URL connection property points to a specific site, the relative URL is relative to the site supplied in the RSBSharePoint_p_URL.
NewFileName String True New name of the file, with extension.

Result Set Columns

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

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