function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
teknicsandteknicsand 

How to display a list item in the html body of an email

Is there a way to display items in a htmlBody of an email. I know it accepts only strings, but if there is a workaround to getting list items to display in the email, it would great.

 

Any suggestions?

 

thanks

 

cheers

sand

jgrenfelljgrenfell

Sand,

 

I've done this by creating the string as I loop through a list.  Something like this...

 

String html_string = '<table>' for (Item i : SomeList){ html_string = html_string + '<tr><td>' +i.Name +</td></tr>; } html_string = html_string + '</table>'

 

Jessie