- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-26-2022 08:14 AM
Hi,
In a playbook I'm using the automation 'send e-mail (EWSO365)'.
In the body of the email I'm adding a list that the playbook has generated as following:
I don't receive any errors and all the data is correct.
But the issue I have is that the email is unreadable.
It's just one line after the other.
Is there any way to make the layout look readable?
For example like some sort of Excel table?
Kind regards,
07-26-2022 08:56 AM
Hey @SteveB, you can use the "htmlBody" parameter instead of "body" when running the send-mail command, to send the email body in an HTML format. Then you'll be able to add an HTML table to the formatted HTML email body.
To convert a given array (context key) to an HTML table, use the ConvertTableToHTML automation, which will save the output into a new context key, that you can then use in the HTML body.
07-26-2022 08:56 AM
Hey @SteveB, you can use the "htmlBody" parameter instead of "body" when running the send-mail command, to send the email body in an HTML format. Then you'll be able to add an HTML table to the formatted HTML email body.
To convert a given array (context key) to an HTML table, use the ConvertTableToHTML automation, which will save the output into a new context key, that you can then use in the HTML body.
07-26-2022 11:41 PM
@nkazinets You are a lord! Exactly what I needed
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!