Show only last comment in notification email

Cat
Tera Guru

Hi All,

 

I'm creating a flow to handle incidents on hold awaiting caller (automatically sending follow up emails and then closing if no response), but do you know how I can make it add only the last customer visible comment rather than all customer visible comments when creating the email notification?

Cat_0-1771325711933.png

 

 

2 ACCEPTED SOLUTIONS

Dr Atul - LNG
Tera Patron

Hi @Cat 

https://www.servicenow.com/community/developer-forum/inserting-just-the-last-additional-comment-into...

https://www.servicenow.com/community/service-operations-workspace/get-latest-comments-in-email-notif...

 

Often, we need to include the latest comments in email notifications.

To display the most recent comment in an email template or notification body, use:

${comments:1}

If you want to show the latest two comments, use:

${comments:2}
cc: @Ankur Bawiskar 
****************************************************************************************
Regards
Dr Atul G. - Learn N Grow Together ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
******************************************************************************************

View solution in original post

Ankur Bawiskar
Tera Patron

@Cat 

if you are using notification and email script then link shared by Atul has blog from me

that should help

Get latest comments in email notification 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron

@Cat 

if you are using notification and email script then link shared by Atul has blog from me

that should help

Get latest comments in email notification 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Yes, I ended up triggering a notification so was able to use comments:1

 

Thank you both as always for your help!