Tool

Rename file or folder

The RenameFileOrFolder tool enables seamless renaming of files and folders within Microsoft 365 SharePoint document libraries or drives. It ensures compliance with naming conventions and provides concurrency control to prevent overwriting concurrent changes.

SharePoint

Features

  • Supports renaming files and folders (DriveItems) within specified SharePoint document libraries or drives.
  • Ensures new names comply with SharePoint naming conventions to maintain system integrity.
  • Incorporates ETag-based concurrency control to avoid conflicts during rename operations.
  • Returns precise error feedback, such as HTTP 412 Precondition Failed, if concurrent modifications are detected.
  • Easy integration with Microsoft 365 SharePoint APIs for automated document management workflows.

Benefits

  • Streamlines document organization by enabling quick and accurate renaming within SharePoint.
  • Prevents accidental data overwrites with robust concurrency control mechanisms.
  • Enhances collaboration through consistent and compliant file naming standards.
  • Reduces manual effort and errors in managing files and folders programmatically.
  • Improves overall efficiency of SharePoint document library management and automation.

Description

Use this tool for SharePoint document libraries or when you need to specify a drive.Rename a file or a folder (also referred to as DriveItems) within a specified Document Library (also referred to as a Drive).Note: The new name must comply with naming conventions.

Parameters

4 parameters

NameTypeDescription
documentLibraryIdrequiredstring

fileOrFolderIdrequiredstring

newFileOrFolderNamerequiredstring

etagstring

ETag value for concurrency control via HTTP 'If-Match' header. Rename succeeds only if driveItems's current ETag matches (prevents overwriting concurrent changes). If mismatch returns 412 Precondition Failed error.

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .