Body email

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Body email

L0 Member

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:

 

Get
inputs.BreachData
Override input
Where
No filters applied
Transformers
JsonToTable (title: BreachData, headers: , is_auto_json_transform: , json_transform_properties: )

 

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,

1 ACCEPTED SOLUTION

Accepted Solutions

L2 Linker

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.

View solution in original post

2 REPLIES 2

L2 Linker

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.

L0 Member

@nkazinets You are a lord! Exactly what I needed

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!