Save attachments
Save an email's file attachments to a folder, optionally only names matching a pattern such as *.pdf.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/save_mail_attachments · 8 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. | |
| Target folder | File | Yes | Folder to save into. | |
| Name pattern | String | No | * | Only names matching this pattern. |
| Overwrite | Boolean | No | false | Replace files of the same name instead of adding a number such as (2). |
| Include inline | Boolean | No | true | Also save images embedded in the body, such as signature logos. |
| 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 |
|---|---|---|
| files | List | Saved file paths. |