
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2018 03:02 AM
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
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2018 05:25 AM
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>');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2018 04:53 AM
What is it your trying to achieve? Maybe a link to a website or a preformatted email?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2018 05:25 AM
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>');