- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 03:01 AM
Hi,I need some assistance with the email notification script "ng_activity_mention_body" used in @Mention email when someone is mentioned in an incident work note or comment.
I would like to include the (long) description field from the current incident when someone is mentioned in work note or comment. What would the syntax be, considering that this field is not updated (hence not in the activity stream for the current record).
I was hoping the syntax would be something like, but this does not seem to work;
if (current.field_name == "description") {
template.print(recordGR.description.getJournalEntry(1) + "<br />");
}
Any help is much appreciated!
Regards,
Roar
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2019 02:45 AM
Hi,
The "ng_activity_mention_body" script calls fields from the current GlideRecord.
It`s used in the Activity Stream @Mention Email template.
With help from my internal development team I was able to correct the script with the statement to print the Description text in email from the Incident record where @Mention is used.
template.print("<p>" + recordGR.getValue("description") + "</p><br />")
This way the agent receiving the @Mention email does not have to open the incident as he received all info by email along with the acual comment.
Regards,
Roar Refsland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2019 08:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2019 02:45 AM
Hi,
The "ng_activity_mention_body" script calls fields from the current GlideRecord.
It`s used in the Activity Stream @Mention Email template.
With help from my internal development team I was able to correct the script with the statement to print the Description text in email from the Incident record where @Mention is used.
template.print("<p>" + recordGR.getValue("description") + "</p><br />")
This way the agent receiving the @Mention email does not have to open the incident as he received all info by email along with the acual comment.
Regards,
Roar Refsland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2021 09:41 PM
Hello Roar,
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).
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 03:01 AM
Hi @Roar Refsland ,
I would like to redirect the link to esc portal. can you assist me? Thanks