How to copy KB article link in incident comments?

Puneet4418
Tera Contributor

Hi,

We have a related link to attach KB article to an incident. Whenever I am attaching any Kb article through that related link, whole content of that particular KB article is getting copied in the additional comments of the incident.

The requirement is to copy link of that KB article instead of the content. please help.

 

Puneet4418_0-1711699480376.png

 

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Puneet4418 

 

OOTB, this can be done via contextual search

AGLearnNGrow_0-1711699629362.png

 

*************************************************************************************************************
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 , Its our customer requirement to use related link. I found the code which copying the Kb text.

below is a part of code that copying the kb text to incident comments.

Puneet4418_0-1711871463893.png

I tried to replace the third line but somehow I am not able to achieve it.

could you please help me with the proper syntax to use link here.

 

Hi @Puneet4418 

 

I can understand its client req, but we are best one to guide client. When something is available OOTB then why we do customization. Give a try mate to this thought. 

*************************************************************************************************************
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]

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

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Puneet4418 ,

 

look at this prop. your code must work after you amend this changes...

 

SohailKhilji_0-1711873550457.png

 

 

 

 

 

To change the article content being added to work notes instead of comments fields, please follow the below steps:
Summary: glide.knowman.attach.fields always add attachment details in comments after upgrading to Madrid..

Below are the steps to set up the field in Madrid:
1)Navigate to Contextual Search > Table Configuration > open a record, e.g. Incident table with UI type as a platform
2)In the related list of "Search Action Configurations", open the record which has "Action label" as Attach, and "Search resource" as KnowledgeSearchResource
3) In this "Search Action Configuration" record, one field is called the "Attach note field".
4)Change this field to "work_notes" from "comments"
5)Perform a cache.do before trying it out.

 

Let me know how it goes


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect