Add Take me to the Instance Link in email notification

SNOW46
Tera Contributor

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

1 ACCEPTED SOLUTION

yes @Snow .That code will match your requirement

View solution in original post

11 REPLIES 11

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

vinothkumar
Tera Guru

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

SNOW46
Tera Contributor

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

satyaki
Kilo Contributor

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

rathnakar1
Giga Contributor

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