I am facing these errors.Please resolve

AMIT SHISHODIA2
Giga Guru

find_real_file.png

1 ACCEPTED SOLUTION

AMIT SHISHODIA2
Giga Guru

Got the Solution:
First:

Replace

var kbPortal = new KBPortalService();
with
var kbPortal = new sn_km_portal.KBPortalService();

after that clone the script include kbPortal Service with the same name and apply it to all scopes and disable OOB script include and work with this cloned one script include

View solution in original post

9 REPLIES 9

You would head to All>System Applications>Application Cross Scope Access. Add a new record and set your target scope to the scope of the record you are trying to access (in this case a script include). Set the operation to allow and type to Execute API. 

Hope this helps anyone else!

Rajesh Kannan G
ServiceNow Employee
ServiceNow Employee

Ok try var kbPortal = global.KBPortalServiceImpl(); instead of var kbPortal = newsn_km_portal.KBPortalService();

AMIT SHISHODIA2
Giga Guru

Got the Solution:
First:

Replace

var kbPortal = new KBPortalService();
with
var kbPortal = new sn_km_portal.KBPortalService();

after that clone the script include kbPortal Service with the same name and apply it to all scopes and disable OOB script include and work with this cloned one script include

Replace var kbPortal = new KBPortalService();
with
var kbPortal = new sn_km_portal.KBPortalService();

will take place at all the places in server side code

Hi @AMIT SHISHODIA , 

 

Can you explain a little bit how to accomplish this with screenshots? I am having issues too with the same. I already cloned the Knowledge Base Browse and duplicated the script include but its  not working for me.