| Step Details | |
| Introduced in Version | 9.26.0 |
| Last Modified in Version | 9.26.0 |
| Location | Integration > Microsoft365 > Exchange > Email |
The Get Email Attachments by Id step retrieves all attachments associated with a Microsoft365 email using the email's Message Id. This allows flows to access and process attachment content from Exchange emails.
Prerequisites
- This step requires that the Microsoft 365 Exchange module be installed before it becomes available in the toolbox.
- A dependency must be created after installing the module for the steps to function correctly.
Properties
Inputs
| Property | Description | Data Type |
|---|---|---|
| Message Id | ID of the email whose attachments will be retrieved. | String |
| User Identifier | Identifier for the user whose mailbox contains the email. | String |
Settings
| Property | Description | Data Type |
|---|---|---|
| Settings Override | Optional settings to override the default OAuth token. | InputExchangeSettings |
Outputs
| Property | Description | Data Type |
|---|---|---|
| Attachments | Returns a list of attachments associated with the specified email, including file name, type, and content. | List of FileData |

Common Errors
Attachments Not Returned
If no attachments are returned, the Message Id may not correspond to an email with attachments, or the email may not be accessible.
To resolve this, verify that the email contains attachments and that the correct Message Id and User Identifier are provided.
Exception Message:
DecisionsFramework.BusinessRuleException: No attachments found or unable to retrieve attachments for the specified Message Id.
The Request Was Unsuccessful
If the OAuth token is invalid or expired, the request to Microsoft Exchange will fail.
To resolve this, ensure that a valid OAuth token is configured and that the user has appropriate permissions.
Exception Message:
DecisionsFramework.BusinessRuleException: The request was unsuccessful.
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
Related Articles:
Exchange Web Services Module