Email notification get name of user who commented
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 12:41 PM
Hi,
I'm configuring a notification and email templates on "case commented". I'm trying to get the user who wrote the comment to be captured. I tried with the solution in this thread but it didnt work: https://www.servicenow.com/community/spm-forum/how-to-get-quot-updated-by-quot-name-in-the-notificat....
So I want it to be like
Best regards,
"First name (not last name) of user who wrote the comment"
How do I fix this?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 07:06 AM
Use this script. Its working for me
var gr = new GlideRecord('sys_user');
gr.addQuery('user_name',current.sys_updated_by);
gr.query();
if(gr.next()){
template.print(gr.name);