How to include multiple knowledge base in service portal

RudhraKAM
Tera Guru

Hello , as many of you know that we can only assign one knowledge base in service portal , how to include another knowledge base too ?

My issue with this is, If i have knowledge base A and  in the portal search if i search for some thing which is in that knowledge base it will display that 

but if i want to include knowledge base B as well in the portal search , how can i do that 

 

I tried adding the search source too but no luck , can some one suggest me what to do with this ?

1 ACCEPTED SOLUTION

OK if you want to set specific KBs, change that line to something like the following:

var kbQuery = kb.addQuery('kb_knowledge_base', $sp.getValue('kb_knowledge_base')).addOrCondition('kb_knowledge_base', 'KB-2-SYSID').addOrCondition('kb_knowledge_base', 'KB-3-SYSID');

The idea is KB1 is set in the service portal definition record and the addOrCondition statements add others.

View solution in original post

18 REPLIES 18

Yes, I've verified that it won't respect that KB setting from the definition record nor the search sources.  I've scoured the widgets for options or filters to do the same as well with no results.  I've dug through the code to look for a GlideQuery that I can restrict or a JSON object that I can parse, nada there as well. 

Any ideas?

The Knowledge Management - Service Portal plugin (com.snc.knowledge_serviceportal) is really meant to make the knowledge v3 application work via Service Portal.  So whatever access the user has in the platform UI, they will have the same access via the kb_home portal.  If you want to remove knowledgebases you use User Criteria like you would elsewhere in the platform.

Yeah, I figured that was the case. I was hoping it would work closer to the Service Portal where you can define a KB for the Portal or via a Search Source.  Thanks for your help on this, really appreciate it!

harshitha9
ServiceNow Employee
ServiceNow Employee

You can do this in Madrid - Please find documentation here - https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/build/service-portal/task/associate-portal-knowledge.html