activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Jul 24, 2025

PREVIEW
Rename File or Folder

UiPath.GSuite.Activities.RenameFileFolderConnections

Description

Renames a file or folder on Google Drive.

Scopes

This activity requires the following scopes:

  • https://www.googleapis.com/auth/drive.appdata

OR

  • https://www.googleapis.com/auth/drive.scripts

OR

  • https://www.googleapis.com/auth/drive.metadata

OR

  • https://www.googleapis.com/auth/drive

Project compatibility

Windows | Cross-platform

Configuration

  • Google Drive connection - The connection for the Google Workspace account to use in the activity.
  • File or folder to rename - The file or folder you want to rename. Browse the Google Drive folders and select a file or folder. Select the plus icon for more options:
    • URL or ID - Changes the current field to File or folder URL or ID, where you need to provide the URL or ID of the file or folder you want to rename.
    • Use File or Folder Variable - Enables the current field to support variables. You can provide a variable with the file or folder you want to rename.
    • Full Path - Changes the current field to Full file or folder path, where you can specify the full path of the file or folder you want to rename.
    • Relative Path - Adds the following new fields to the activity:
      • Parent folder - The parent folder of the file or folder.
      • Spreadsheet relative path - The relative path of the file or folder.
    • Reload File or Folder Data - Use this option if you have modified your files or folders and need to retrieve the latest data.
  • New name - The new name of the renamed file or folder. If left blank, the renamed item retains the original name. Use the plus icon menu to switch to the Use variable input mode. This property supports String variables and string formatted values.
  • If file or folder already exists - What is the expected behavior when a file or folder with the same name already exists. Choose one of the available options from the dropdown menu:
    • Add as separate file - Adds the file without renaming it even if an item with the same name exists.
    • Don't replace - Fails if an existing item is found.

Properties

Output

  • File or folder - The renamed file or folder. An automatically generated output variable will populate this field. You can use it as-is, or save it with a different name. You can also use this in other activities.
  • Description
  • Project compatibility
  • Configuration
  • Properties

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2025 UiPath. All rights reserved.