Search K
Appearance
Appearance
Retrieves email messages from a specified Microsoft 365 mailbox using a service account, with support for filtering by sender, recipient, subject, keywords, and date range.
Use this task when a workflow needs to read emails from a shared or delegated mailbox rather than the authenticated user's own inbox. It is useful for monitoring team inboxes, support queues, or any mailbox accessible through a service account. The retrieved messages are stored in an output variable for downstream processing such as routing, classification, or automated responses.
| Field | Type | Required | Description |
|---|---|---|---|
| Email Account | Text | No | The email address of the mailbox to search. |
| Unread Emails | Checkbox | No | When checked, only unread messages are returned. |
| Inbox Folder only | Checkbox | No | When checked, the search is restricted to the Inbox folder. |
| Maximum Emails to Retrieve | Text | No | The maximum number of emails to return. Must be between 1 and 1000. Defaults to 10. |
| Date After | Date / Time | No | Only include emails received after this date and time. |
| Date Before | Date / Time | No | Only include emails received before this date and time. |
| Filter To | Text | No | Filter emails by the address in the To field. |
| Filter From | Text | No | Filter emails by the sender's address. |
| Filter Subject | Text | No | Filter emails whose subject contains this text. |
| Keywords search | Text | No | Filter emails whose body contains these keywords. |
| Name | Description |
|---|---|
| Emails | A list of email message objects matching the applied filters. Each object contains message metadata such as sender, recipients, subject, and body preview. Downstream tasks can iterate over this list or inspect individual messages. |