The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Notification @Mention : Add details

V_ronique C_t_
Tera Contributor

Hi,

 

The @Mention notification is not really effective!!!

 

I would like to add additional details to the @Mention Notification.

 

How can I do via the "ng_activity_mention_body" script to add the title and description of the INT/SCTASK/INC concerned as well as the comment concerned?

 

Do you have examples of your @Mention Notification

 

Thank You

1 ACCEPTED SOLUTION

Hemanth M1
Giga Sage
Giga Sage

Hi @V_ronique C_t_ , 

 

Did you check this notification "Activity Stream @Mention Email"

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

View solution in original post

3 REPLIES 3

Hemanth M1
Giga Sage
Giga Sage

Hi @V_ronique C_t_ , 

 

Did you check this notification "Activity Stream @Mention Email"

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Hi Hemanth, 

 

  Thand for your answer.  I was find this subject in the community. This code was help me to add Work_notes or Comments. 


  But, I would like add also the short_Description and Description.  Does anyone know how to do ?

 

Thank 

 

Have a good day

 

Code for add W.N. or Comments : 

 

var result = new ActivityMentionEmailValues().getEmailValues(current.table, current.document);
if (result) {
    result = JSON.parse(result);
    // email.setSubject("Mentionné dans le billet  : " + result.subjectText);
    var gr = new GlideRecord(current.table);
    gr.get(result.recordSysId);
    //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 + " in <a href='/" + result.className + ".do?sys_id=" + result.recordSysId + "'>" + result.linkText + "</a></p>");
if (current.field_name == "comments") {
              template.print("Commentaire :<p> " + gr.comments.getJournalEntry(1) + " </p>");
     }
      else if (current.field_name == "work_notes") {
              template.print("Note de travail :<p> " + gr.work_notes.getJournalEntry(1) + " </p>");

I find.. add this line 

 

template.print("Short Description :<p> " + gr.short_description + " </p>");
template.print("Short Description :<p> " + gr.description + " </p>");