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