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.

KB Link is to showing in the incident notification

Puneet4418
Tera Contributor

Hi,

When a KB article is attached to an incident the additional comments is updated with KB article content and notification is picking up the entire code tag instead of link.

How can I fix this issue? I want KB article link in the notification.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Puneet4418 

 

Could you please provide some screenshot.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG , here is the screenshot.

 

Puneet4418_0-1711623945454.png

 

I think it is OOTB way toi appear in Incident.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Pushpanjali
Tera Contributor

@Puneet4418 

use link.query() and link.next() in your mail script.

 

template.print("<a href=\'" + instanceName + "nav_to.do?uri=kb_knowledge.do?sys_id=" + link.sys_id + "\'>" + link.number + "</a>");

 

 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards

Pushpanjali