--- title: "Get Email Attachments by Id" slug: "get-email-attachments-by-id" updated: 2026-05-27T22:56:39Z published: 2026-05-27T22:56:39Z canonical: "documentation.decisions.com/get-email-attachments-by-id" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Email Attachments by Id | 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](https://documentation.decisions.com/docs/microsoft365-exchange) module be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it becomes available in the toolbox. - A [dependency](https://documentation.decisions.com/docs/project-dependencies) 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 | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1779922109185.png) --- ## 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: ```csharp 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: ```csharp DecisionsFramework.BusinessRuleException: The request was unsuccessful. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized). ``` --- Related Information Related Articles: [Exchange Web Services Module](https://documentation.decisions.com/docs/microsoft365-exchange)