Is there a way to consolidate all articles from one knowledge base into another knowledge base ?

AnnamariaK
Tera Contributor

I would to consolidate 84 KB articles and 9 categories from one knowledge base to another is there an efficient way to do this? 

3 REPLIES 3

SasiChanthati
Giga Guru

Consolidating or migrating Knowledge Base (KB) articles from one Knowledge Base to another can be done efficiently, especially for bulk operations like moving 84 articles. Here are the options.

Efficient Ways to Move KB Articles in ServiceNow:

Option 1: Bulk Update via List View. If the articles are already published and in the same state.

  1. Go to Knowledge > Articles in the application navigator.  
  2. Use filters to narrow down the 84 articles (e.g., by Knowledge Base, category, author, etc.).
  3. Select all articles in the list.
  4. Click "Edit" (not Update).
  5. In the bulk edit view, change the Knowledge Base field to the destination KB.
  6. Save. This only works if ACLs and workflows allow articles to be reassigned directly

Option 2: Use a Script (Background Script / Fix Script). For more control (e.g., if articles are in multiple states or need metadata cleanup), you can use a background script:

 

var kbSource = 'source_kb_sys_id';

var kbTarget = 'target_kb_sys_id';

var gr = new GlideRecord('kb_knowledge');

gr.addQuery('kb_knowledge_base', kbSource);

gr.query();

while (gr.next()) {

  gr.kb_knowledge_base = kbTarget;

  gr.update();

}

Finds all articles from the source KB, Updates each to the target KB. You can add additional filters (like `active=true`, or specific categories)

 

Option 3: Use Flow Designer (for Process-Based Migration)  

  1. Create a Flow in Flow Designer  
  2. Trigger: Manual or Scheduled  
  3. Actions: Lookup KB articles (via "Lookup Records"), Update each record using "Update Record" to change KB field

Kim27
Tera Guru

If you are moving them from one KB into another KB, do the following: 

  • Create the categories in the new KB. 
  • In the published view, set the filter to show the old KB articles and sort the articles by category. Sorting by category will make it easier to remember which category you need to select. 
  • Double-click to edit the KB name and change it to the new name.
  • Then, double-click on the category and reselect the category, which will point to the one you just created in the new KB. 

You will be able to bulk-edit from the list view. 

slgonzales
Tera Contributor

While Kim27's solution is absolutely viable, just wanted to share our experience with the ability to bulk edit KB content. Unfortunately, the bulk update option is not available if the KB requires the approval workflow. In this case, articles have to be checked out to be editable.