- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2020 12:11 PM
Hi Team,
When i add the additional comments in the incident. Then a notification will be triggered to the Caller and Assigned To.
#1 Additional Comments will be looking something like below in the incident:
#2 But in the email it is looking like below and it is not carrying any spaces or paragraph breaks or it is not carrying over the line returns etc.. This is not a good user experience and its confusing for them.
We are just getting the latest comment and printing using the email scripts.
template.print(current.comments.getJournalEntry(1));
#3 But i need to show like #1 with the same format.
Please suggest how to achieve the above #3.
Thank you!!
Kumar
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2020 11:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 08:29 AM
Hi,
try replacing the newlines with html <br> tag as below. This should indent the text properly as per your requirement.
template.print(current.comments.getJournalEntry(1).replace(/(?:\r\n|\r|\n)/g, '<br>'));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2020 09:31 PM
Hi Dharanikumar,
Please let me know if this issue is resolved. Also please mark my answer correct/helpful if it helped in resolution of your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2020 11:57 PM
Hi,
Did you try this?
try replacing the newlines with html <br> tag as below. This should indent the text properly as per your requirement.
template.print(current.comments.getJournalEntry(1).replace(/(?:\r\n|\r|\n)/g, '<br>'));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2020 02:55 AM
Thanks Nikhil !!
try replacing the newlines with html <br> tag as below. This should indent the text properly as per your requirement.
template.print(current.comments.getJournalEntry(1).replace(/(?:\r\n|\r|\n)/g, '<br>'));