- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 02:39 PM
We want to add a full activity list at the bottom of an email notification. I created an email script that simply has
template.print(current.comments.getJournalEntry(-1));
to get all of them. However it outputs it as a block of text without any line breaks, dividing lines, or bold like you would see when using ${comments}.
Is it possible to get the full activity history and retain the same look as when using the standard variable?
FYI: I don't want to change the glide.system.journal.lines property because there are other notifications using the standard variable where we want to retain the default behavior.
thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 02:46 PM
Can you check the 'Newlines to HTML' checkbox in Email script and try
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 02:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 02:58 PM
Tony, please see this Docs article:
This code will get an array of all the comments that you can then loop through via script and format to your liking.
Please mark this post or any as helpful or the correct answer to your question if applicable so others viewing may benefit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2018 07:03 AM