Is there any backend identifier on case to identify if work notes are added or additional comments

ashu1612
Tera Contributor

I have a requirement where whenever additional comments are added, script include will send those comments to third party. Is there any identifier on case through I can identify if any additional comment so that BR which calls the script include can be triggered.

3 REPLIES 3

AnirudhKumar
Mega Sage
Mega Sage

You can use a BR with filter condition saying , 'Additional comments changed'.

In the script, just add 

current.comments.getJournalEntry(1);

You can also compare

 

if(current.comments.getJournalEntry(1) != previous.comments.getJournalEntry(1)){

//do something

}

Ravi Gaurav
Giga Sage
Giga Sage

Hi @ashu1612 

 

you can use getJournalEntry() will help you out.

Glide to the table and create a object and use 

obj.comments.getJournalEntry(1);

There is al logic to add  entry with numbers:-

getJournalEntry(1) Gives you the most recent entry

getJournalEntry(-1) Gives you all entries

 

 

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/