Outlook icon

Outlook

Manage Microsoft Graph Outlook subscriptions, messages, and attachments

Actions26

Message → List

AI-generated

Summary

List email messages from a mailbox with optional filtering, sorting, field selection, and folder restriction, supporting both current and other mailboxes.

Inputs

  • Mailbox Mode — Choose between listing messages from the current mailbox or another mailbox by specifying its email.
  • Other Mailbox Email (required) — Email address of the other mailbox to query, required if 'Other Mailbox' is selected.
  • Folder ID — Restrict the listing to a specific folder in the mailbox. Leave empty to include all folders.
  • Return All — Whether to retrieve all matching messages by paging through all result pages.
  • Limit — Maximum number of messages to return when 'Return All' is false, between 1 and 1000.
  • Filter — An OData $filter string to restrict messages based on properties (e.g., 'isRead eq false').
  • Order By — Sort order of the returned messages, such as by received date or sent date, ascending or descending.
  • Select Fields — Specific message fields to include in the response; leaving empty returns the default set of fields.

Output shape

a list of message objects

The returned messages honor the folder restriction, filter, sort order, and selected fields if specified. If 'Return All' is true, all pages of results are fetched; otherwise, up to the specified 'Limit' number of messages are returned.

Examples

Example 1: List unread messages from the Inbox folder of the current mailbox, returning a maximum of 50 messages sorted by newest first.

Set Mailbox to 'Current Mailbox', Folder ID to Inbox folder's ID, Filter to 'isRead eq false', Return All to false, Limit to 50, Order By to 'receivedDateTime desc'.

Example 2: List all messages from another mailbox by email address without folder restriction.

Set Mailbox to 'Other Mailbox', enter the other mailbox email, leave Folder ID empty, set Return All to true to get all messages.

Links

Discussion