- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 09:37 PM - edited 09-24-2023 11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 12:19 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 11:12 PM - edited 09-24-2023 11:05 PM
Working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 11:25 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 11:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2023 11:39 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2023 12:03 AM - edited 09-24-2023 11:03 PM
h