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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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:
  • Verified answer
    MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at

    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

    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

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard