- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2024 05:09 AM
Dear Team,
Please can you help me to resolve the issue . As below I am posting the question.
When a ServiceNow Case is updated, then email gets generated, which has the generic From address like "GED Grip Support". We want this to be changed to Actual Name of the person when case is updated, instead of "GED Grip Support".
For example shivam.rai -then email id. please find the below screen shot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2024 05:21 AM
Hello @Rai Shivam Ajay,
Do you want to change the Name in the Subjet/Body of the notification or something else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2024 10:35 PM
Hello @Rai Shivam Ajay ,
this is going to be the case only if the email is sent to the user<to get the user name>, not the group. I am not aware of a property or a scripting way for this to be changed.
I think if you add the recipients from a mail script in cc, maybe this could work, something like this -
email.addAddress("cc",user.email, user.name );
but if you sent the mail to a group I don't think that you can achieve what you are going for.Hope that this helps you!
If the provided information answers your question, please consider marking it as Helpful and Accepting the Solution so other community users can find it faster.
All the Best,
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 10:07 AM
Hello @Rai Shivam Ajay ,
now I got you, I haven't implemented this but you can change this on the notification itself, you need to find the notification that is getting sent and add the email to be set in from:
but this is static as well, you need a mail script to achieve this, something like this:
(function runMailScript(current, template, event) {
email.setFrom(current.user.name + " <" + current.user.mail + ">");
//email.setFrom("Shivam Rai <shivam_rai@gmail.com>");
})(current, template, email, email_action, event);
Here is an article that could help you:
https://www.servicenow.com/community/developer-forum/change-email-notification-sender-from-it-servic...
Hope that this helps you!
If the provided information answers your question, please consider marking it as Helpful and Accepting the Solution so other community users can find it faster.
All the Best,
Stefan