cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nsgma
Helper II
Helper II

email body ignores line returns

Hello,

I have a problem that I cannot figure out.

I have a flow that collects the body of an e-mail and puts it on the body of an event. In doing that I converted from HTML to text. I then e-mail that content. 

When I run the flow on that second e-mail the text collapses into several few lines in what seems a random way (it does not really matter it is random, I would just like it would not do it).

so if the original mail reads:

«

Bananas

Oranges

Peaches

»

The second mail looks like that but without formatting and the third looks like:

«

Bananas Oranges Peaches

»

 

Any ideas?

N

 

2 REPLIES 2
melim
Power Automate
Power Automate

Are you using the Outlook connector?  I tried the scenario you described and used the "Html to text" connector. It mostly preserved the formatting of my email:

 

Original message:

"Unique

formatting

example"

 

Output:

"Unique

 

formatting

 

example"

 

 

HtmlToTextConverter.png

Hi @melim

It's on the second round that it happens - meaning if you go through the flow a second time with the same message.

But actually it is quite easy to replicate, if your message is not html but rich or plain text the line breaks will go so

«

Rice

Pasta

Patatoes

»

becomes

 

«

RicePastaPatatoes

»

 

Is there a to check if a message is html or not?

Is the only way to work with the body of a message to convert to text?

 

Thanks,N

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,910)