Actions37
- Calendar Actions
- Contact Actions
- Draft Actions
- Event Actions
- Folder Actions
- Folder Message Actions
- Message Actions
- Message Attachment Actions
Message Attachment → Get Many
AI-generatedSummary
Retrieve multiple attachments from a specified Outlook message by providing the message ID, with options to limit the number of results and include selected attachment fields.
Inputs
- messageId (required) — The ID of the Outlook message to retrieve attachments from. Can be selected from a searchable message list or specified directly by ID.
- returnAll — Boolean flag to indicate whether to return all attachments or limit the number of results.
- limit — Maximum number of attachments to return when 'Return All' is false. Must be at least 1; defaults to 50.
- options.fields — Specific attachment fields to include in the output. Available fields are contentType, isInline, lastModifiedDateTime, name, and size.
Output shape
a list of attachment objects associated with the specified message
The output is an array of attachments with fields filtered according to 'options.fields' if specified. Pagination or limiting is controlled by 'returnAll' and 'limit'. Errors are returned if the message ID is invalid or no attachments are found.
Examples
Example 1: Retrieve up to 10 attachments from a given message, returning only name and size fields
Set messageId via resource locator mode, set returnAll to false, set limit to 10, and select 'name' and 'size' in options.fields.