Skip to main content
outlook.getMessage returns a message’s body and metadata.

Example

automations/get-outlook-message.automation.ts

Inputs

Required messageId: string is Outlook’s opaque message ID. Optional second argument { account } defaults to the project Microsoft binding. The action doesn’t accept a conversation ID.

Output

Returns a complete OutlookMessage, including body, preview, recipients, sender, subject, timestamps, categories, importance, flag, folder and conversation IDs, read/draft/attachment state, Focused Inbox classification, web link, and ETag where available. hasAttachments indicates that attachments exist but doesn’t include their contents. Use List attachments.