Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add additional comments in notification through eamil script

sinu2
Tera Expert

How to add additional comments in notification through eamil script

 

if any body have script kindly help

1 ACCEPTED SOLUTION

Nikhil Soni 007
Giga Guru

Hello there,

 

we have access to current object in email Script so with help of that we can get additional comments

 

current.comments.getJournalEntry(-1) // retrieve all the comments.
 

current.comments.getJournalEntry(1) //retrieve latest comments. 

 

you can also use split() function of array to get rid of system generated text.

 

please mark this correct if it is helpful 😀!

View solution in original post

1 REPLY 1

Nikhil Soni 007
Giga Guru

Hello there,

 

we have access to current object in email Script so with help of that we can get additional comments

 

current.comments.getJournalEntry(-1) // retrieve all the comments.
 

current.comments.getJournalEntry(1) //retrieve latest comments. 

 

you can also use split() function of array to get rid of system generated text.

 

please mark this correct if it is helpful 😀!