Move email
Move an email to another folder (id or well-known name such as archive).
Command in the Microsoft 365 toolkit · id ooa.microsoft365/move_mail · 5 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| ID | String | Yes | Email id. | |
| To folder | String | Yes | Destination folder id, well-known name, or a path such as Inbox/Invoices/2026. | |
| Mailbox | String | No | me | Mailbox: me, or a user's email address (needs application permission). |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| new_id | String | The email's id in the destination folder. |