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

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

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