cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Colin_Davis
Frequent Visitor

HTML to Text Formatting issue

I am building a flow that will save emails along with attachments to my OneDrive when an email is flagged.

 

Everything is working great except the HTML to Text conversion. Its not keeping any of the formatting of the email. Its all jumbeled up into a paragraph mess. Is there anyway to do this without a subscription or account we a third party? Thanks in advance 

1 ACCEPTED SOLUTION

Accepted Solutions
Colin_Davis
Frequent Visitor

For anyone that finds this thread I was able to find something the helped out and works great. 

 

https://powerusers.microsoft.com/t5/Building-Flows/save-email-as-pdf/td-p/109005

View solution in original post

4 REPLIES 4
Colin_Davis
Frequent Visitor

For anyone that finds this thread I was able to find something the helped out and works great. 

 

https://powerusers.microsoft.com/t5/Building-Flows/save-email-as-pdf/td-p/109005

View solution in original post

Anonymous
Not applicable

Hello,

 

I have same issue. I want to convert email text (may be in Rich text or HTML) to plain text and send to sQL for inserting records. I have used "HTML To Plain text connector" and it display content with formatting into variable. But when I am assigning same variable to SQL stored procedure, there it shows "\n" in place of paragraphs. Also all spacing is killed. Do you have any suggestion to counter that?

 

Appreciated in advance.

I would think that the issue would be in how the SQL is intrepreting what is being inserted, but I have not tried to insert text from an email into and SQL database. Sorry I could not be more help.

Anonymous
Not applicable

Thanks Colin, appreciate your response.

 

I figured out the solution last night. Actually, Htm to plain text is converting email with Char(10) in that. I pass entire email content (after Html to text) to SQL and in SQL I replace Char(10) to Char(10) + Char(13). After that result comes as expected. So all good now.

 

Thanks again.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,075)