Find emails
List emails in an Exchange folder, newest first, filtered by unread, sender, subject and date; loop over the table to process them.
Command in the Exchange (EWS) toolkit · id ooa.exchange/list · 12 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Folder | String | No | inbox | Folder: a well-known name (inbox, sentitems, deleteditems, drafts, junkemail, archive), a path such as Inbox/Invoices, or a folder id. |
| Unread only | Boolean | No | false | Only unread emails. |
| 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). | |
| Maximum results | Number | No | 100 | Maximum emails returned. |
| Before | DateTime | No | Received before this time (UTC). | |
| Read only | Boolean | No | false | Only emails already read. |
| Has attachments only | Boolean | No | false | Only emails that have attachments. |
| Oldest first | Boolean | No | false | Return the oldest emails first instead of the newest. |
| Session | String | No | exchange | Session name of the open Exchange mailbox. |
| Body contains | String | No | Body contains this text (searched by the server); separate several with ; to match any of them. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: id, from, subject, received, unread, has_attachments. |
| count | Number | Number of emails. |