Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 03:16 AM
Hey Developers,
I have used ${URI_REF} opposite to Number.
Instead of showing STRY number it's showing short description of the story.
I have been using ${URI_REF} & it worked as expected. Not sure what wrong here.
Please suggest.
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 03:21 AM
Try something like this:
template.print('<a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=task.do?sys_id=' + current.sys_id + ' ">' + current.getValue("number") + '</a>');
Embed in your notification
${mail_script:getStoryNumber}
Best Regards
Aman Kumar
Aman Kumar
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 03:22 AM
You need to use mail script so as to get number or change it to simply as ${URI} that has text as Link.