Include actual message in "Activity Stream @Mention Email" notification?

MarcB1
Tera Guru

Hi

is there any way to include the actual message in the "Activity Stream @Mention Email" notification?

--> it's sometimes not worth opening ServiceNow

What I mean:

find_real_file.png

find_real_file.png

Unfortunately, the message itself is not visible on the "live_notification" entry:

find_real_file.png

Any idea?

Thanks

1 ACCEPTED SOLUTION

Hello all,





Recently I tried to deal with the same situation as the one described here.
Thanks to Laura I obtained the solution I was looking for.



I hope the approach shared by her in this thread: https://community.servicenow.com/message/1193632?et=watches.email.outcome#1193632 will be of use to you too!




Best Regards,
Georgi Mavrodiev



IT Consultant


Do It Wise



You may visit us in our Web Site: www.doitwise.com


View solution in original post

18 REPLIES 18

I hadn't saved the exact thread, but I did apply the update.  As Chuck entered above, open the ng_activity_mention_body email script at https://INSTANCE.service-now.com/nav_to.do?uri=sys_script_email.do?sys_id=381391d09f021200d5f9b3e295...

Update the script to something similar to this

var recordGR = new GlideRecord(current.table);
if(recordGR.get(current.document)) {
	email.setSubject("You have been mentioned in " + recordGR.getDisplayValue());
	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='/" + recordGR.getRecordClassName() + ".do?sys_id=" + recordGR.getUniqueValue() + "'>" + recordGR.getDisplayValue() + "</a></p>");
	if (current.field_name == "comments") {
		template.print(recordGR.comments.getJournalEntry(1) +  "<br />");
	}
	else if (current.field_name == "work_notes") {
		template.print(recordGR.work_notes.getJournalEntry(1) +  "<br />");
	}
}

Can someone assist on how to change the link portion above to the workspace case? The way above is setup it sends you to the core servicenow case page. I am also trying to include the case subject in the notification.

 

Thanks!

Ricky Singh
Tera Expert

Is there any update on this, we have a similar request from the end ?

Hi Ricky,

Do you have solution? I am also looking for the same.