Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to insert Hyperlink in the email script?

Nandini Sahay
Kilo Contributor

I have a use case where I have to insert hyper link in the email via email script. Can anyone help me on this?

1 ACCEPTED SOLUTION

eumak
Tera Guru

Hello @Nandini Sahay ,

you can use the below syntax for getting the link in email via mail script ;

Static Link:

template.print('<a href="'+url+'"> Here you can give the Description </a>');

Dynamic link:

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>');

 

Mark it helpful or correct, If Applicable

Cheers..!
Happy Learning:)
Tushar

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar

View solution in original post

2 REPLIES 2

eumak
Tera Guru

Hello @Nandini Sahay ,

you can use the below syntax for getting the link in email via mail script ;

Static Link:

template.print('<a href="'+url+'"> Here you can give the Description </a>');

Dynamic link:

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>');

 

Mark it helpful or correct, If Applicable

Cheers..!
Happy Learning:)
Tushar

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar

Thanks @Tushar,

Static one worked for me.

Regards
Nandini