Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add knowledge base KB article link to email script in servicenow?

Nandhini Sri
Tera Contributor
 
2 REPLIES 2

Community Alums
Not applicable

Nandhini Sri
Tera Contributor
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/>");
}