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.

How to Transfer knowledge articles from one knowledge base to another knowledge base?

Nikhil Kumar
Tera Contributor

Hi Community,

 

Could you please provide me suggestions how can I transfer the knowledge articles from one knowledge base to another knowledge base?

 

Thanks and regards,

Nikhil

3 REPLIES 3

suvro
Mega Sage

Just write a fix script ...below is the sample code to migrate from Knowledge Base "IT"

var kb = new GlideRecord('kb_knowledge');
kb.addEncodedQuery("workflow_stateINdraft,review,published,pending_retirement,retired^kb_knowledge_base=a7e8a78bff0221009b20ffffffffff17");//change this query as per your liking
kb.query();

while (kb.next()){

kb.knowledge_base = <sys_id_of_required_knowledge base>;
kb.update();
}

Marcin Mierzick
Tera Contributor

Hello Nikhil!

You can easily move articles between knowledge bases by editing knowledge article. In the docs there is step-by-step procedure:

Move a knowledge article

Regards,

Marcin

 

Maciej Kowalski
Kilo Expert

Hello, check this doc's article

https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/product/knowledge-management/task/t_MoveAnArticle.html