Is there any backend identifier on case to identify if work notes are added or additional comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2024 05:06 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2024 05:56 AM
You can use a BR with filter condition saying , 'Additional comments changed'.
In the script, just add
current.comments.getJournalEntry(1);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2024 03:15 AM
You can also compare
if(current.comments.getJournalEntry(1) != previous.comments.getJournalEntry(1)){
//do something
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2024 07:57 AM
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/