
- 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 07:11 AM
Hello,
I am still getting undefined in preview email option , it stating record not found .
Please check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 07:19 AM
try this
var url = "<a href=/u_update_configuration_items.do?sys_id="+current.getUniqueValue().toString()+"> "+current.number+" </a>";
template.print(url);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 07:21 AM
Hello @Community Alums
Check the link which is coming to your browser, after redirecting, It will hep you to debug the issue in the script.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh