Insert dynamic hyperlink in email script

Alok Das
Tera Guru

Hi,

I'm trying to insert a dynamic hyperlink in a notification, using email script. I looked on few posts which suggests to use html tags, however those tags are not supported for the current versions of servicenow.

Thanks in Advance

Alok

1 ACCEPTED SOLUTION

balaji_prusty1
Giga Guru

You can use this below for Incident.. you can customize as per your requirement this below link. I used this in current Jakarta version and it works. 

 

template.print('<a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=incident.do?sys_id=' + gr.sys_id + '">' + gr.number + '</a>');

View solution in original post

2 REPLIES 2

dave_edgar
Mega Guru

What is it your trying to achieve?  Maybe a link to a website or a preformatted email?

balaji_prusty1
Giga Guru

You can use this below for Incident.. you can customize as per your requirement this below link. I used this in current Jakarta version and it works. 

 

template.print('<a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=incident.do?sys_id=' + gr.sys_id + '">' + gr.number + '</a>');