Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Get Email Attachments by Id

Prev Next
Step Details
Introduced in Version9.26.0
Last Modified in Version9.26.0
LocationIntegration > 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

PropertyDescriptionData Type
Message IdID of the email whose attachments will be retrieved.String
User IdentifierIdentifier for the user whose mailbox contains the email.String

Settings

PropertyDescriptionData Type
Settings OverrideOptional settings to override the default OAuth token.
InputExchangeSettings

Outputs

PropertyDescriptionData Type
AttachmentsReturns 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 Information

Related Articles:
Exchange Web Services Module