> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.microsoft.mail.MoveMail

- Component: `appmixer.microsoft.mail.MoveMail`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.microsoft.mail 2.3.0](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.MoveMail>

Moves an email message to another folder.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Destination Folder ID (`destinationFolder`) | text | The unique identifier of the destination folder where the item will be moved or copied to. |
| Email Message ID (`emailId`) | text | Email message ID that needs to be moved. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| `result` | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.microsoft.mail.MoveMail",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Moves an email message to another folder.",
  "auth": {
    "service": "appmixer:microsoft",
    "scope": [
      "Mail.ReadWrite"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "destinationFolder": {
            "type": "string"
          },
          "emailId": {
            "type": "string"
          }
        },
        "required": [
          "emailId"
        ]
      },
      "inspector": {
        "inputs": {
          "destinationFolder": {
            "type": "text",
            "index": 2,
            "label": "Destination Folder ID",
            "tooltip": "The unique identifier of the destination folder where the item will be moved or copied to.",
            "source": {
              "url": "/component/appmixer/microsoft/mail/ListFolders?outPort=out",
              "data": {
                "properties": {
                  "sendWholeArray": true
                },
                "transform": "./ListFolders#foldersToSelectArray"
              }
            }
          },
          "emailId": {
            "type": "text",
            "index": 1,
            "label": "Email Message ID",
            "tooltip": "Email message ID that needs to be moved."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "result",
          "value": "result",
          "schema": {
            "type": "object",
            "example": {
              "id": "AAMkAGI1AAAoZCfHAAB=",
              "subject": "Q1 Planning Meeting Notes",
              "isRead": true,
              "parentFolderId": "AQMkADAwATM0MDAAMS1iNTcwLWI2NTEtMDACLTAwCgAuAAAE",
              "lastModifiedDateTime": "2026-01-15T11:05:00Z"
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
