Skip to main content
listMessages returns complete normalized messages, including body and preview.

Example

automations/list-recent-outlook-mail.automation.ts

Inputs

Optional folder is a display path, folder ID, or well-known name. Optional filter and orderBy are OData expressions. limit defaults to 100 and permits 1–10,000 across Graph pages. account selects the Microsoft binding.

Output

Returns OutlookMessage[]. A message contains messageId, subject, optional body: { content; contentType: "text" | "html" }, preview, recipients, sender, timestamps, IDs, read/draft/attachment state, categories, importance, flag, Focused Inbox classification, folder, web link, and ETag. Recipient arrays and categories default to []; subject defaults to an empty string. This action does not download attachments. Use listAttachments or getAttachment with the message ID.