How to save the email attachment of type .msg or .eml in a storage account?

HouMez 391 Reputation points
2023-02-24T13:51:50.9866667+00:00

Hello,

Saving the received email attachment files in a storage account works well for .pdf, .txt and .jpg files for example, but not when the email contains another email in the attachment (.msg or .eml).

Even though I use the condition of processing only emails with an attachment, this condition is always valid when the Logic Apps receives an email with a .msg attachment, but the "attachement" object in the OUTPUTS is always empty:

2023-02-24_14h46_38

Is there a way to save the .msg files in a storage account?

Many thanks.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,550 questions
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 25,111 Reputation points Microsoft Employee Moderator
    2023-02-27T07:48:01.46+00:00

    @HouMez Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this. 

    This is caused by Office 365 connector does not support “item attachment”. From our official document, we should use HTTP with Azure AD connector to work around such limitation.

     For your reference you can refer to this blog post on how to implement the logic app to send .msg or .eml as an attachment using HTTP connector.

    Feel free to reach back to me if you have any further

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.