Get message
The Microsoft Outlook Get Message tool fetches a single email message by its Microsoft Graph ID. When includeAttachments is enabled, it also returns each fileAttachment with its base64 contentBytes, making the email's body and attachment content directly available to downstream automation steps.
Features
- Fetch a single email message by its Microsoft Graph message ID.
- Optionally include attachment metadata and base64 `contentBytes` inline.
- Supports shared mailboxes via the `userId` parameter.
- Returns the full message body so downstream steps can parse content directly.
- Powered by the Microsoft Graph API for reliable, up-to-date message data.
Benefits
- Access full email body and attachment content in a single call.
- Enable AI-driven workflows that need to read CVs, invoices, or other attached documents.
- Avoid extra round-trips by fetching attachments inline instead of separately.
- Work with shared mailboxes by targeting a specific `userId`.
- Integrate easily with Pipedream-driven Outlook automation flows.
Description
Retrieve a single email message by its Microsoft Graph message ID. Optionally includes attachment metadata and base64 contentBytes (when the attachment is a fileAttachment). See the documentation
Parameters
3 parameters
| Name | Type | Description |
|---|---|---|
| userId | string | The User ID of a shared mailbox. If not provided, defaults to the authenticated user's mailbox. |
| messageIdrequired | string | The Microsoft Graph message ID. |
| includeAttachments | boolean | If true, expands attachments inline so each fileAttachment includes its base64 |