Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to set up number of comments (additional comments) for template in e-mail notification

Milan13
Giga Expert

Hello,

I have a notification which notifies user once addditional comments are changed, however, probably by default, it shows always last three comments in the e-mail, I need to set this up for the last comment only.

Please see below boy of my e-mail notification - this always shows last three records, I nedd just the last one, is this a  matter of some system property or is ther ea different solution?

Appreciate your help on this.

Milan

<p>Short Description: ${short_description}</p>
<p>Priority: ${priority}<br />Product: ${product}</p>
<div><hr /></div>
<div>Last <strong>Additional Comments</strong> added (list or single):</div>
<div>&nbsp;</div>
<div>${comments}</div>
<div>&nbsp;</div>
<hr />
<p>&nbsp;</p>

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron

Hi Milan,

 

Look for System Properties >> Email properties & then check for below.

find_real_file.png

 

This though would imply it will be a generic/global impact for all jorurnal entry fields used in the notifications.

 

View solution in original post

5 REPLIES 5

Jaspal Singh
Mega Patron

Hi Milan,

 

Look for System Properties >> Email properties & then check for below.

find_real_file.png

 

This though would imply it will be a generic/global impact for all jorurnal entry fields used in the notifications.

 

I was looking for this. More or less. This also applies when you are configuring the Virtual Agent to provide you with updates. Works like a charm. 

asifnoor
Kilo Patron

Hi,

For this you need to write a mail script and add the code there.

template.print(current.comments.getJournalEntry(1));

and call the mail script in your notification

Kindly mark the comment as a correct answer and helpful  if this answers your question.

Yaraslau
Tera Guru

Try ${comments:1} or ${comments:2} ....