> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get message

> Get one full Outlook message by ID.

`getMessage` loads one message's full body and normalized metadata.

## Example

```ts automations/get-outlook-message.automation.ts theme={null}
import { automation } from "automate.ax"
import { getMessage } from "automate.ax/outlook"

export default automation("Get Outlook message", () => {
  getMessage({ messageId: "AAMkAGI2..." })
})
```

## Inputs

Required `messageId: string` is Outlook's opaque message ID. Optional `account`
defaults to the project Microsoft binding. A conversation ID is not accepted.

## 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 does not include their
contents; use [List attachments](/reference/integrations/outlook/actions/list-attachments).
