- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2018 04:06 AM
Hi Team,
I have a query that while working on Email Notifications for Incident, there are some OOB Notifications defined.
But I want to add a link as "Take Me To The Instance" under the email notification body text. Once any user click on that link it will re-direct to the homepage of the Instance with navigation bar at the left.
Anyone can share some inputs on this how to achieve this then it would be great.
Thanks,
Gourav
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2018 02:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2018 02:28 AM
Hi,
You have different properties in your instance.
1. All the instance have Default property is instance_name . So you can get this not to hard code.
var instanceName=gs.getProperty('instance_name');
template.print('<a herf='https://"+instanceName+".service-now.com/navpage.do'>Take Me To The Instance</a>
2. You can also embed SSO url here so that it will not ask for username and password.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2018 12:28 PM
Please check this, it can be done by changing the setting of dictionary attribute
http://www.goranlundqvist.com/2016/03/display-duration-in-hours-instead-of.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2018 12:54 AM
Hi All,
I expect some more inputs on this. if anyone can share some of their views then it would be appreciable.
Thanks & Regards,
Gourav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2018 01:33 AM
Hi,
You can add your link under the message HTML section.Goto notification under email ,then goto what will it contain section and then find the insert /edit tag under the message HTML body.Put the link there.
Thanks,
Satyaki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2018 01:34 AM
Add this code in email notification script
var b= 'https://instancename.service-now.com/nav_to.do?uri=%2Fhome.do';
var url='<a href="'+b+'">'+"take me to incident"+'</a>';
template.print(url);
and call this script from your notification
Thanks,
Rathnakar