Hello,
Recently, I have created a flow which triggers "When an email arrives(V3)" to do the following:
-Table array variable
-Html to text to convert the body of the email to text.
-Compose action where it's mapped the conversion of the HTML text.
-Set variable action that shows the output of this compose action.
-Create HTML table
-Finally, send an email action with the output of the HTML table and some CSS design for the table.
The problem is the output of the HTML table does not display the body design as it was received what I mean by this is the line breaks between each text how it was received from the original mail.
(So it can be more readable and understandable)
Please have a look at these screenshots so you can understand what I mean:
Original Email
After the email was sent of the HTML table
Besides, the output result of the HTML table shows exactly how it was received (with line breaks).
Kindly have a look at this demo that shows the Output result of the HTML table:
This is my CSS code design of the HTML table:
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td:first-child {
width: 30%;
}
td:last-child{
width: 50%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th:first-child {
width:30%;
}
thead tr:first-child{
width:40%;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
Is it possible to display the same body format output as it was received from the original email so it can be more readable with line breaks?
Can someone please explain in detail and provide an example?
Any help will be greatly appreciated.
Thank you!
Thanx for this new explanation!
I am afraid the official Microsoft support response last summer was the following:
"It is a default behavior that when using the action “Html to text”, all the line breaks and format will be removed."
There is a request to add this feature, as the thread explains you can vote it here
Sorry for the bad news
Hi @efialttes ,
Concerning the first question you asked, I am already mapping and applying the specific CSS in the send an email action and the design change as expected.
Unfortunately, even when I only map the body without converting it from HTML to text it will display as follow:
As I mentioned in my screenshots above, it's not showing the same format as to how it's was receiving a check this example below:
Original Email:
Dear Efialttes,
I hope this message finds you well!
Testing testing.
Regards,
Julien
After the flow runs the body of this email I mentioned will display like this:
Dear Efialttes,I hope this message finds you well!Testing testing.Regards,Julien
I want after the flow runs display in sending an email action the same format body as it was received from the original.
For more details please have a look at the entire flow screenshot:
I hope that you have got my point.
Looking forward to your response.
Thank you!
Hi
Not sure I understood the scenario. So you are receiving an HTML table inside the email body, and want to map it into another HTML table and apply a specific CSS, right?
If so, the first problem is, since you are using "Convert from HTML to texxt" you are losing all HTML tags. THen if you wrap the output into an element, append it to an array, and inject it to "Create HTML table", you are building an HTML with just one row.
But, again, unsure if my understanding is correct
WarrenBelz
146,765
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional