# Rename Folder

> `UiPath.Box.Activities.Folder.RenameFolder`

`UiPath.Box.Activities.Folder.RenameFolder`

The **Rename Folder** activity uses the Box [Update folder](https://developer.box.com/reference/put-folders-id/) API to rename (**New Folder Name**) a specified folder (**Folder Id**).

After renaming the file, the activity outputs a `BoxFolder` object (**BoxFolder**) that includes the properties of the updated folder.

## How it works

The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

1. Complete the [Setup](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-setup) steps.
2. Add the [Box Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-scope) activity to your project.
3. Add an activity or run an external process that outputs a `Folder.Id` value (e.g., [Create Folder](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-create-folder), [Search for Content](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-search-for-content), etc.).
4. Add the **Rename Folder** activity inside the **Box Scope** activity.
5. Enter values for the **Input** properties.
6. Create and enter a `BoxFolder` variable for the **Output** property.
   * Your input property values are sent in the [Update folder](https://developer.box.com/reference/put-folders-id/) API operation request.
   * The operation returns the `BoxFolder` value to your output property variable.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-179400-802a74fc-b09eb8da.webp)

## Properties

### Common

* **ContinueOnError** - Specifies if you want the activity to continue running when an error is thrown. This field supports only `Boolean` values.
* **DisplayName** - The display name of the activity. This field supports only `Strings` or `String` variables.

### Input

* **Folder ID** - The ID of the folder that you want to rename. This field supports only `Strings` or `String` variables. To get the **Folder ID** value, add an activity or run an external process that outputs a `Folder.Id` object (e.g., [Create Folder](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-create-folder), [Search for Content](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-search-for-content), etc.).
* **New Folder Name** - The new name for the existing folder. This field supports only `Strings` or `String` variables.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **Box Folder** - The `BoxFolder` object that includes the folder properties. This field supports only `BoxFolder` variables. The `BoxFolder` object includes multiple [properties](https://developer.box.com/reference/resources/folder/) that you can use in other activities.
