get-mail-attachment
Retrieve email attachments from Microsoft 365 by specifying message and attachment IDs. Access properties, relationships, or raw content of file, item, or reference attachments.
Instructions
Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| select | No | Select properties to be returned | |
| expand | No | Expand related entities | |
| messageId | Yes | Path parameter: messageId | |
| attachmentId | Yes | Path parameter: attachmentId | |
| fetchAllPages | No | Automatically fetch all pages of results | |
| 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 |