# Move Email

> `UiPath.Mail.Activities.Business.MoveMailX`

`UiPath.Mail.Activities.Business.MoveMailX`

:::important
The new version of the Outlook application impacts this activity. For more details, check [New Outlook impact on UiPath Outlook Desktop activities](https://docs.uipath.com/activities/other/latest/productivity/new-outlook-impacts-outlook-desktop-activities#new-outlook-impact-on-uipath-outlook-desktop-activities).
:::

Moves an email to the specified Outlook or Exchange folder, or adds a specified Gmail label to the email. Should be used for the currently selected Outlook email, or in a [For Each Email](https://docs.uipath.com/activities/other/latest/productivity/for-each-email-x) activity when iterating through Gmail, or Outlook emails. This activity must be added inside a [Use Outlook 365](https://docs.uipath.com/activities/other/latest/productivity/exchange-application-card), [Use Gmail](https://docs.uipath.com/activities/other/latest/productivity/gmail-application-card), or [Use Desktop Outlook App](https://docs.uipath.com/activities/other/latest/productivity/outlook-application-card) activity.

To learn how to use this activity, see [Tutorial: Extracting Data from Automated Emails and Moving it to a Desktop Application](https://docs.uipath.com/studiox/docs/tutorial-extracting-data-from-automated-emails-moving-it-to-a-desktop-application).

## Configuring the activity

#### In the body of the activity

* **Email** - Select **Plus** on the right side of the field and then, from the menu, select the message to move. When the activity is inside a **For Each Email** activity, select **CurrentMail** to indicate the current mail in the iteration. When automating the Outlook desktop app, you can also select **Selected Mail** to use the message that is selected in Outlook when the project is executed. Alternatively, you can select **Open in Advanced Editor** and enter a VB expression.
* **Move to** - Select **Plus** on the right side of the field, and then, from the menu, select the email account and the folder where to move the email. Alternatively, choose one of the other options from the menu to indicate the folder where to move the email:

  + Data from the Project Notebook, a parent Excel file or email account. For example, select an Excel file and then select a cell that contains a folder name.
  + **Use Saved Value** - Select a value that you previously saved for later use in the project.
  + **Text** - Enter a folder name in the Text Builder.
  + **Ask when run** - Prompt for a folder name when the project is executed.
  + **Paste from clipboard** - Paste a value that you previously copied to the clipboard in the project.
  + **Open in Advanced Editor** - Enter a VB expression.

#### Properties panel

**Common**

* **DisplayName** - The name displayed for the activity in the Designer panel.

**Input**

* See the options in the body of the activity.

**Misc**

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