listMessageMetadata lists mailbox or folder messages with minimal mail access.
Use it when routing depends on headers and state rather than message content.
Example
automations/list-unread-mail.automation.ts
Inputs
folder optionally accepts a display path, ID, or well-known name. filter and
orderBy are Microsoft Graph OData expressions. limit defaults to 100 and
accepts 1–10,000. account defaults to the project Microsoft binding.
Output
ReturnsOutlookMessage[] without body or preview. Each record includes
messageId, subject, recipients, read/draft/attachment state, categories,
importance, flag, folders, conversation and internet IDs, timestamps, sender,
Focused Inbox classification, web link, and ETag when Graph supplies them.
Invalid OData expressions fail at Microsoft Graph.