get-mail-message
Retrieve properties and relationships of an event message from a Microsoft 365 mailbox. Supports expanding the associated event and selecting specific fields.
Instructions
Get the properties and relationships of the eventMessage object. Apply the $expand parameter on the event navigation property to get the associated event in an attendee's calendar. Currently, this operation returns event message bodies in only HTML format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | Expand related entities | |
| select | No | Comma-separated fields to return, e.g. id,subject,from,receivedDateTime | |
| messageId | Yes | Path parameter: messageId | |
| fetchAllPages | No | Follow @odata.nextLink and merge up to 100 pages into one response. Can return enormous payloads—only when the user explicitly needs a full export. Prefer a small $top first, then paginate or narrow with $filter/$search. | |
| includeHeaders | No | Include response headers (including ETag) in the response metadata | |
| excludeResponse | No | Exclude the full response body and only return success or failure indication |