- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 07:54 AM
My customers see value in including the text where they were "@mention" in the Activity Stream @Mention Email notification. This way they will not have to login to our instance to view the comment.
I don't what the entire Activity stream, just the entry where they were mentioned into the Activity Stream @Mention Email notification.
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Notifications

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 08:06 AM
Activity steam notifications are implemented in below notificatiion
and this notifications calls email script $ng_activity_mention_body
You will have to update ng_activity_mention_body email script to include comments like below
var recordGR = new GlideRecord(current.table);
if(recordGR.get(current.document)) {
var displayValue = recordGR.getDisplayValue();
var subjectText = displayValue
? displayValue
: "a record discussion";
var tableDisplay = recordGR.getClassDisplayValue();
var linkText = displayValue
? "the " + tableDisplay + " record " + displayValue
: "this " + tableDisplay + " record ";
email.setSubject("You have been mentioned in " + subjectText);
template.print("<p style='color: #424E5B;margin: 0 0 12px;line-height: 26px;margin-bottom: 12px'>You have been mentioned by " + current.user_from.name + "with comments as " + recordGR.comments.getJournalEntry(1) + " in <a href='/" + recordGR.getRecordClassName() + ".do?sys_id=" + recordGR.getUniqueValue() + "'>" + linkText + "</a></p>");
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2020 08:06 AM
Activity steam notifications are implemented in below notificatiion
and this notifications calls email script $ng_activity_mention_body
You will have to update ng_activity_mention_body email script to include comments like below
var recordGR = new GlideRecord(current.table);
if(recordGR.get(current.document)) {
var displayValue = recordGR.getDisplayValue();
var subjectText = displayValue
? displayValue
: "a record discussion";
var tableDisplay = recordGR.getClassDisplayValue();
var linkText = displayValue
? "the " + tableDisplay + " record " + displayValue
: "this " + tableDisplay + " record ";
email.setSubject("You have been mentioned in " + subjectText);
template.print("<p style='color: #424E5B;margin: 0 0 12px;line-height: 26px;margin-bottom: 12px'>You have been mentioned by " + current.user_from.name + "with comments as " + recordGR.comments.getJournalEntry(1) + " in <a href='/" + recordGR.getRecordClassName() + ".do?sys_id=" + recordGR.getUniqueValue() + "'>" + linkText + "</a></p>");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2021 09:44 PM
Hello Sachin,
I was wondering if there is a way we can record the email sent via Mentions in the activity streams of the records (incident, requests, story, etc) like other emails gets recorded.
Regards,
Amit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 08:25 PM
Hi Sachin,
Is there a way that If assignee mentions another person on HR case/task work note by using (@name of person to be mentioned), an email notification is triggered but is there a way where mentioned person can see somewhere in ServiceNow that where all he has been mentioned. So that he doesn't need to go through his mails to follow the mentions.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2023 10:09 AM
Hi @sachin_namjoshi
What if I Want to implement same functionality on another table(not on live_notification table) notification.?
can we fetch same data on that ?