catalog

Deepika Ravindr
Tera Contributor
 
1 ACCEPTED SOLUTION

@Deepika Ravindr 

 

Please check the below screenshot, this is a entry from live_notification table, for every mentioned name in the worknotes/comments it will make a entry in that table

 

PrinceArora_0-1695539617189.png

 

You can see "field_name" as work_notes and this email script is working on the table "live_notification", please add a check in your email script:

 

if(current.field_name == "work_notes"){

//Execute your  worknotes template here OR customise message OR if you want to make it specific for a table you can also add a table check above

}else{

// you can execute normal execution whatever was present earlier

}

 

I hope you understand!

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

View solution in original post

11 REPLIES 11

Working

It's working different way, I am tagging some one in Additional comments it will take the work notes last comments. I am not sure why it's behave like this

@Deepika Ravindr 

 

It behaves like this because that notification is worked for both worknotes as well as additional comments

You need to add a if condition that it will pick worknotes if someone has updated worknotes

and it will pick comments if someone has updated comments 

if you want to do it for worknotes only please add a if condition to execute it for worknotes only

@Deepika Ravindr 

 

So 

recordGR.work_notes.getJournalEntry(1)

provides the output as above mentioned screenshot only, you need to modify the output as below:

 

var worknote =recordGR.work_notes.getJournalEntry(1);

var worknoteContent = worknote.split("(Work notes)\n");

var lastWorknote = worknoteContent[1];

 

And use the "lastWorknote" as the output print

 

 

h