Skip to main content

Rename File

AutomatR.OneDriveApp.Activities.RenameFile

The "Rename File" activity in AutomatR, part of the OneDrive activities package, utilizes Microsoft APIs to rename a file within your OneDrive account. This activity streamlines the process of updating file names, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
PathSpecifies the file path from the drive of the file you wish to rename. String variables containing the file path.
New NameSpecifies the new name that you would like to assign to the file mentioned in the file path. String variables containing the new file name.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Rename File" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5.

How to Use

  1. Drag and drop the "Rename File" activity onto the workflow.
  2. Configure the properties by specifying the file path and the new name within the OneDrive account.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to rename the specified file within OneDrive.

Example:

Consider an example where the "Rename File" activity is used to rename a file named "document.txt" within OneDrive:

Rename File:
Display Name: "Rename Document File"
Path: "/Folder1/document.txt"
New Name: "new_document.txt"

In this example, the activity renames the "document.txt" file in "Folder1" to "new_document.txt" within OneDrive.