How to add knowledge base KB article link to email script in servicenow?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 06:39 AM
2 REPLIES 2
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 06:44 AM
Hi @Nandhini Sri ,
Please use this solution: https://www.servicenow.com/community/developer-forum/how-to-add-kb-article-in-notification/m-p/13766...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 07:02 AM
I tried this script , but not getting the link in email please help on this?
var tpsa = new GlideRecord("kb_knowledge");
tpsa.addQuery("number", "KB0017341");
tpsa.addQuery("sys_id","c07f3860879831d8dbbc63583cbb3557");
tpsa.query();
if(tpsa.next())
{
template.print("<a href='" + gs.getProperty('glide.servlet.uri') + "kb_view.do?sys_kb_id=" + link.sys_id + "'>" + link.number + "Click here </a><br/>");
}