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.

Get id of current portal in use

Daniel Biesiada
Mega Guru

Hi, 
I need to place record in sp_search_source regarding kb articles. Issue here is that before Madrid we could have only one kb pin-up to portal, now there is more than one. In data fetch script I want to query m2m_sp_portal_knowledge_base. 
Get Id's of related knowledge bases but I'm not able to do it because I don't know how to receive Id of current portal in use. 

I need it because we have two portals one should have access only to kb for ESS users and second is for fulfillers

1 ACCEPTED SOLUTION
2 REPLIES 2