# Move Mail

This activity moves an email message to a user-specified mail folder using the Microsoft Graph [Move event message](https://docs.microsoft.com/en-us/graph/api/message-move?view=graph-rest-1.0\&tabs=http) API.

### Input

* **Connection Id:** [`GraphServiceClient Variable`](https://docs.visualyze.ai/getting-started/rpa-studio/variables#graphserviceclient)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  Specifies the office 365 connection id.
* **Account:** [`String Argument`](https://docs.visualyze.ai/getting-started/rpa-studio/arguments#string)\
  Specifies an email address with which to interact. This property can include any shared mailbox to which the current user has access rights. If the property field is left empty, the current user's account is used. This is an **optional** property.
* **Destination Folder:** [`String Argument`](https://docs.visualyze.ai/getting-started/rpa-studio/arguments#string) ![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  Specifies the destination folder to which the mail message(s) are to be moved.
* **Message:** [`Object Argument`](https://docs.visualyze.ai/getting-started/rpa-studio/arguments#types-of-arguments) ![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  Specifies the email message as [Office365Message](https://docs.visualyze.ai/getting-started/rpa-studio/variables#office-365-message) that is to be moved. We can also specify the output variable of the Get Mail activity (which is an array) directly as input by providing its element. For example : Messages\[1]
