Each email in a mailbox (Outlook)
Go through the emails matching the Find emails filters, one per turn: id, from, subject, received, unread, has_attachments, or the whole email.
Loop type in the Microsoft 365 toolkit · id ooa.microsoft365/emails · 14 inputs, no 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. | |
| Folder | String | No | inbox | Folder id or well-known name: inbox, archive, sentitems, deleteditems. |
| Unread only | Boolean | No | false | Only unread emails. |
| Read only | Boolean | No | false | Only emails already read. |
| From contains | String | No | Sender contains this text; separate several with ; to match any of them. | |
| Subject contains | String | No | Subject contains this text; separate several with ; to match any of them. | |
| Since | DateTime | No | Received on or after this time (UTC). | |
| Before | DateTime | No | Received before this time (UTC). | |
| Has attachments only | Boolean | No | false | Only emails that have attachments. |
| Oldest first | Boolean | No | false | The oldest emails first instead of the newest. |
| Maximum results | Number | No | 100 | Stop after this many emails. |
| With body | Boolean | No | false | Give each email whole: text, HTML, recipients and attachment names (one more request per email); the email stays unread. Without it each email has id, from, subject, received, unread and has_attachments. |
| 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. |