- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 05:23 AM
Hello Team,
I have requirement to hyperlink current record on email script .
how we can do this please advise.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 05:52 AM - edited 08-24-2023 05:56 AM
Hello @Community Alums ,
Try this code in email script...
var url = 'u_update_configuration_items.do?' + 'sys_id=' + current.getUniqueValue();
template.print("<a href= '"+ url + "'>" + current.number + "</a>");
Help others to find a correct solution by marking the appropriate response as correct answer and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 06:23 AM
Hello @Community Alums ,
You can try this
var url = "<a href=/u_update_configuration_items.do?sys_id="+current.sys_id.toString()+"> "+current.number+" </a>";
template.print(url);
OR
if number is the display value in your u_update_configuration_items table just use ${URI_REF} in your notification body with an email script.
Hope this helps
Mark my answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 05:34 AM
Hi @Community Alums
Please find the related article - https://servicenowguru.com/system-definition/email-notifications-system-definition/email-links-uri-uriref/
Please mark it Correct and Hit Like if you find this helpful!
Regards,
Karthiga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 05:52 AM - edited 08-24-2023 05:56 AM
Hello @Community Alums ,
Try this code in email script...
var url = 'u_update_configuration_items.do?' + 'sys_id=' + current.getUniqueValue();
template.print("<a href= '"+ url + "'>" + current.number + "</a>");
Help others to find a correct solution by marking the appropriate response as correct answer and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 06:15 AM
Hello Rohit,
I am getting this undefined in notification .
Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 06:23 AM
Hello @Community Alums ,
You can try this
var url = "<a href=/u_update_configuration_items.do?sys_id="+current.sys_id.toString()+"> "+current.number+" </a>";
template.print(url);
OR
if number is the display value in your u_update_configuration_items table just use ${URI_REF} in your notification body with an email script.
Hope this helps
Mark my answer correct if this helps you
Thanks