Adding table in email

0
Could you please assist me in finding a solution to display a table of records within an email? I'm looking for a way to include a table in an email, but currently, our system doesn't support adding tables directly to emails. Any guidance on achieving this would be greatly appreciated.
asked
1 answers
0

1. Create a Microflow:

Retrieve the data you want to display in the table.

• Format the data into an HTML table structure

• Use a String variable to hold the HTML content.2.

Example HTML Table Structure:<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%;"><thead><tr><th>Column 1</th><th>Column 2</th><th>Column 3</th></tr></thead><tbody><tr><td>Row 1, Col 1</td><td>Row 1, Col 2</td><td>Row 1, Col 3</td></tr><tr><td>Row 2, Col 1</td><td>Row 2, Col 2</td><td>Row 2, Col 3</td></tr></tbody></table>

 

3. Send the Email:• Use the Email with Templates module .

• Set the email body to your formatted HTML content.

• Ensure the email is sent as an HTML email

answered