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.

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy