Share via

How to read blob(which is either a *.eml or *.msg) present in storage container in a email(.eml or .msg) format on blobtrigger in logic app??

Vishnu Vardhan Ch 21 Reputation points
2022-12-19T14:44:12.857+00:00

I have a blob storage container where emails in the form of either .msg or .eml
Now How can I load those blobs into logic app as emails rather than a blob
or how can I tell the logic app that, loaded blob is an email and not just a blob?

When I use the blob trigger I am not able to find an option to load/convert that blob as email...
Is there any way to solve this??

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

0 comments No comments
{count} votes

Answer accepted by question author
  1. MayankBargali-MSFT 71,001 Reputation points Moderator
    2022-12-20T16:15:24.877+00:00

    @Vishnu Vardhan Ch Thanks for reaching out. To get any file content you can leverage the Get blob content (V2) and select Yes for the Infer content type property of Get Blob content action. The response can be file content as binary, and you need to convert this binary to base64ToString if needed. I can see the raw content of my email as text without converting it to base64ToString. Now based on your business needs you can do any calculation on the string content that you have received. You can leverage the regex expression in inline code to search any data inside your email or as per your need.

    If your requirement is out of box feature i.e. tokenized values that will help you with the sender, to, email content, Subject etc. then it is not possible in this case as there is no action that can load the binary content to tokenized values in the outlook connector and you need to have your own logic to get the details.

    Feel free to get back to me if you have any queries or concerns.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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