- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 09:07 AM
Hello all,
need your help. I have created a push notification, when the work notes are added the user gets notified.
Here is the sample : Incident ${number} -- Work Notes added
But what I need is the notification should also include the name of the person who has made the comments in the Notification
Sample of what I need
Incident ${number} work notes added by <Firstname Lastname>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 09:29 AM
Updated by is the users ID, not full name.
But if ${} notation works in SMS, we should be able to use a mail_script, right? It's a long shot, but it just might work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 09:12 AM
Hi @Sundar akula ,
you can take updated by like below
Incident ${number} work notes added by ${sys_updated_by}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 09:29 AM
Updated by is the users ID, not full name.
But if ${} notation works in SMS, we should be able to use a mail_script, right? It's a long shot, but it just might work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 09:37 AM
Hey Runjay I tried but it is giving the UserID. Is there a way where I can display the Full name of the User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 02:11 PM
If you use a Notification Script, something along the lines of:
var userRecord = new GlideRecord("sys_user");
userRecord.get("user_name", current.sys_updated_by);
if(userRecord.isValidRecord()){
template.print(userRecord.getValue("name");
}
If you name it get_name, then you could use ${mail_script:get_name}