web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get plain text from em...
Power Automate
Unanswered

Get plain text from email files (eml converter/parser)

(0) ShareShare
ReportReport
Posted on by 10

Hello All,

I am looking for a way to convert or parse my eml-files (Outlook email format) to plain-text content. I see how easy we can do that by means of many online converters and other file tools, but I cannot find any action or connector available for Power Automate step.

 

Any ideas and suggestions are really appreciated!

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @AlexVoy 

     

    This blog is the closest thing I could find. It uses a 3rd party connector. Please check with your organization. You wouldn’t want DLP to bite you.

     

    https://clavinfernandes.wordpress.com/2018/10/09/archive-incoming-emails-in-pdf-format-using-microsoft-flow/

     

  • VictorIvanidze Profile Picture
    13,073 on at

    Hi @AlexVoy,

     

    as far as I know eml is a plain text format. What exactly do you want to achieve? 

  • KatiaL Profile Picture
    10 on at

    Yes, it is in text format, but it contains metadata as well as some parts of it are encoded.

    For example, this is how the source eml-file looks like

     

    eml-sample.png

     

    and this is what I want to get as parsed plain text.

     

    plain-text.png

    In other words, I need a tool which lets to work with EML data similar to JSON, for example.

     

    Thank you for helping me!

  • VictorIvanidze Profile Picture
    13,073 on at

    I'm afraid there is no ready to use tool that can do what you want.  

    You can write such thing yourself though using Power Automate string and conversion functions.

  • KatiaL Profile Picture
    10 on at

    Can you give me a simplest example?

  • VictorIvanidze Profile Picture
    13,073 on at

    I doubt that such example exists.  If you think the task is too hard for you then hire someone.

  • Max44 Profile Picture
    223 on at

    How to parse a EML document using GroupDocs. Parser App
    Select your EML document for parsing text and click Parse Now button.
    For parsing images from your EML document click on Download Images button.
    Once your EML document is parsed click on Download Now button.

  • KatiaL Profile Picture
    10 on at

    Yes, I love this online parser but I do not see how I can use it inside of a flow so that it would go without manual interaction.

  • JwGriesbaum Profile Picture
    10 on at

    You can use base64tostring on the $content and it will render as plain text

     

    Example:

    base64ToString(outputs('Get_file_content_using_path')?['body']?['$content'])

  • Ericcjones Profile Picture
    5 on at

    Thank you for sharing. This simply perfect and perfectly simple bit of code made a world of difference in a problem that threatened to knock a company-wide initiative off the rails!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard