Save email as MSG
Save an email, with its recipients, HTML body and attachments, as an Outlook .msg file that opens in Outlook.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/save_mail_as_msg · 6 inputs (2 required), 2 outputs
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. | |
| Local path | File | Yes | Where to save the .msg file; a path ending in / or an existing folder gets a file named after the subject. | |
| Overwrite | Boolean | No | true | Replace an existing file; when false a number such as (2) is added to the name. |
| 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 |
|---|---|---|
| path | File | Saved local path. |
| attachments | Number | Number of attachments saved in the file. |