Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Change URL of link in Attached Knowledge Related List

spike
Mega Sage

I have enabled the Attached Knowledge Related list on the Request Item form. I've also created an on insert business rule that looks up in customer table and attaches a KB article to the raised request item and adds an entry to m2m_kb_task.

This is all working fine and when someone raises that request item, a knowledge article is attached.

However the link on the related list opens the KB article in the view kb_knowledge. This is the edit form for the KB artcle.

How can I get the link to open in kb_view so it's more user friendly?

Running on Tokyo.

Thanks

1 ACCEPTED SOLUTION

spike
Mega Sage

I figured out a way of doing this. It's not the most pretty solution but it works.

 

I added another column to my customer table table of URL. I set this to have a default value, calculated via a script that builds the URL that I want. 

 

I then created a new related list view (relationship) based on the sc_req_item table and my mapping table. I then made the new URL column the one that is seen by default on the related view.

 

It's not pretty because it shows the whole URL and I can find no way to make it pretty. But it works..

View solution in original post

3 REPLIES 3

Ratnakar7
Mega Sage

Hi @spike ,

 

You can modify the URL of the link to include the sysparm_view parameter with the value set to kb_view. This will ensure that the KB article opens in the view mode.

The modified URL should look something like this:

 

<a href="kb_knowledge.do?sys_id=<KB_ARTICLE_SYS_ID>&sysparm_view=kb_view">KB Article</a>

 

Replace <KB_ARTICLE_SYS_ID> with the actual sys_id of the KB article.

 

 

Thanks,

Ratnakar

 

But where would I actually do that? I'm not building the URL in the first place.

 

The related list is using the m2m_kb_task table to generate the link. The column in question is a reference to the knowledge table.

 

How do I get access to the URL?

 

Thanks.

spike
Mega Sage

I figured out a way of doing this. It's not the most pretty solution but it works.

 

I added another column to my customer table table of URL. I set this to have a default value, calculated via a script that builds the URL that I want. 

 

I then created a new related list view (relationship) based on the sc_req_item table and my mapping table. I then made the new URL column the one that is seen by default on the related view.

 

It's not pretty because it shows the whole URL and I can find no way to make it pretty. But it works..