Move message
BetaChanges data
Moves an email to another folder of its Microsoft 365 mailbox.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| MailboxRequired | The mailbox this node works in — a user's sign-in address, or their object id. Your app needs Mail.ReadWrite for it. |
| Message idRequired | The id a list of messages answered, as Graph gave it. |
| Move toRequired | A folder id, or a well-known name such as archive. The moved message gets a new id — use the one this node answers. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
mailbox | text |
messageId | text |
destination | text |
Output
| Field | Type |
|---|---|
idNew message id | string |
messageMoved message | object |
message.subject | string |
Sample output, and the expression for each field
- id"2"
- message
- id"2"
- subject"Hi"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"destination": "<move to>",
"mailbox": "<mailbox>",
"messageId": "<message id>"
},
"label": "Move message",
"type": "graph.moveMessage",
"version": 1
}