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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Email to Excel - how t...
Power Automate
Unanswered

Email to Excel - how to prevent entire html message from being parsed as well?

(0) ShareShare
ReportReport
Posted on by 6

Hello Community,

 

I am currently building a flow that listens to certain Outlook-Mails from our CRM system. There are a few variables in these mails that I want to parse in an excel sheet(OneDrive). 

I found this ticket that seemed to solve my issue https://powerusers.microsoft.com/t5/Building-Flows/Extract-text-from-body-of-an-email-and-create-new-rows-in-excel/td-p/104708

 

BUT... I always get the entire HTML Message of the Email in addition to the part of the body I want for that cell.

AlexanderEV_0-1656401835213.png

I have tried many things. Even when I stripped most functions out, including the "html to text" thing and just said "when a mail comes just write test1" and it still parses that HTML junk:

AlexanderEV_2-1656402005979.png

 

Am I missing something obvious? I am anxious for your answers 🙂

 

kind regards

Alex

Categories:
I have the same question (0)
  • Verified answer
    MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: Email to Excel - how to prevent entire html message from being parsed as well?

    Hello @AlexanderEV ,

    please refer to the following discussion:

     

    https://powerusers.microsoft.com/t5/Building-Flows/Converting-HTML-to-Text/m-p/266492#M27056

     

    You should be able to add the "Html to text" action.

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

     

    BR,

    Marco

  • AlexanderEV Profile Picture
    6 on at
    Re: Email to Excel - how to prevent entire html message from being parsed as well?

    Hello @MarconettiMarco ,

    adding "Html to text" was the first thing I did.

    """

    I have tried many things. Even when I stripped most functions out, including the "html to text" thing and just said "when a mail comes just write test1" and it still parses that HTML junk:

    """

    Adding it does not change anything.

     

    BR,

    Alex

  • MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: Email to Excel - how to prevent entire html message from being parsed as well?

    Dear @AlexanderEV ,

    I've added the following action and it's working:

    MarconettiMarco_0-1657523106110.png

     

    Could you please, if you're allowed, pass me your html so that I can test it?

     

    BR,

    Marco

  • AlexanderEV Profile Picture
    6 on at
    Re: Email to Excel - how to prevent entire html message from being parsed as well?

    Hello @MarconettiMarco ,

     

    turns out I was missing the obvious: My expression, where I cut my desired substring was just faulty and returned the entire message.

    Still confused though why the flow still passed the entire html text when I configured my flow to just write a fixed string ("test1").

    Anyways thanks for your help 🙂

     

    BR,

    Alex

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard