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 / Is it possible to clea...
Power Automate
Answered

Is it possible to clean up email Body dynamic content that gets placed into a multiple line SharePoint column?

(0) ShareShare
ReportReport
Posted on by 365

Hello,

 

I am trying to figure out of it is possible to clean up the text from the email Body dynamic content when you place it into SharePoint.

Right now it looks like this mess:

 

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
span.EmailStyle17
{font-family:"Calibri",sans-serif;
color:windowtext}
span.PlainTextChar
{font-family:"Calibri",sans-serif}
.MsoChpDefault
{font-family:"Calibri",sans-serif}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style></head><body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div class="WordSection1"><p class="MsoPlainText">Voice message is located in attached WAV file.</p><p class="MsoNormal">&nbsp;</p></div></body></html>

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    You can try using Html to text, passing in the HTML content and see what you get. I tried it with your HTML and get the following output.

     

    grantjenkins_0-1674267073262.png

     

    grantjenkins_1-1674267093324.png

     

    It still contains a couple of new line characters that you could easily remove if required. See expression below:

    trim(replace(outputs('Html_to_text')?['body'], decodeUriComponent('%0A'), ''))

     

    grantjenkins_2-1674267273004.png

     

    grantjenkins_3-1674267322663.png

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard