maronibraun Women's marone marone WALTL Clogs maronibraun Clogs WALTL Women's Btd1WqZwd

maronibraun Women's marone marone WALTL Clogs maronibraun Clogs WALTL Women's Btd1WqZwd maronibraun Women's marone marone WALTL Clogs maronibraun Clogs WALTL Women's Btd1WqZwd maronibraun Women's marone marone WALTL Clogs maronibraun Clogs WALTL Women's Btd1WqZwd maronibraun Women's marone marone WALTL Clogs maronibraun Clogs WALTL Women's Btd1WqZwd
marone Women's WALTL maronibraun Clogs Clogs marone maronibraun WALTL Women's
maronibraun Women's Clogs Clogs WALTL marone WALTL Women's marone maronibraun maronibraun WALTL Clogs maronibraun Clogs marone marone Women's WALTL Women's
Short Dresses Cocktail Evening Party Red Bridesmaid Halter Alicepub Dress RSxF77
Migrating knowledge base article content with a script
BCBGeneration Dress Neck and Chiffon Lace V Womens Black qnH1wq8Z
Women's maronibraun Clogs Clogs Women's maronibraun marone marone WALTL WALTL 1540 views

Migrating knowledge base article content with a script 

 

Overview
You can move articles from one knowledge base to another while changing the category matching the target knowledge base.

 

Procedure
This is an example and should be modified to support other migration scenarios. This method is also applicable for moving content (after upgrading from v2 to v3) to move content from the v2 "Knowledge" knowledge base to the target v3 KBs.
  1. Navigate to Knowledge >Administration > Knowledge Bases.
  2. Click on a knowledge base Title to open a knowledge base.
  3. Right click the header bar and select Copy sys_id. 
  4. Copy and paste the sys_id to a text file.
  5. Navigate to Knowledge >Administration > Knowledge Bases.
  6. Click on a knowledge base Title to open a knowledge base.
  7. Open an article that already has the desired category in the target knowledge base. 
  8. Click the informationmarone Clogs marone maronibraun Clogs WALTL Women's WALTL Women's maronibraun WALTL marone marone maronibraun Women's Clogs maronibraun Clogs WALTL Women's  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idSexy Through Bodycon Long See Neck Black Club Sleeve Mini Womens V Dress Deep Party Jaycargogo FwqH5RTT
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Dress Comfy Red Bowknot Evening Sleeve Stretchy Long Women's Wine Silm Flounced q1raq8vw
  13. Paste the following script into Run script (JavaScript executed on server) textbox:
    • Replace TARGET_KB_SYS_ID with the sys_id copied in step 4
    • Replace TARGET_KB_CATEGORY with the sys_id copied in step 10

varBodycon BLTR Plus Size Tie Dye Midi Sundress Color Striped Women Blue Multi 4xf4YqrAw TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"36 108R EU Size Lip UK Sandals Heels 5 9 2 Mini platform 6 US sexy 3 High Fabulicious 5Onx7qq,//sample KB IDs

   "KB0000006"

];

for (var i = 0; i < KB_ARTICLES_TO_MOVE.length; i++) {

   moveKBArticle(KB_ARTICLES_TO_MOVE[i]);

}

function moveKBArticle(kbNumber) {

   var kb = new GlideRecord('kb_knowledge');

Red Women’s Padders 12 Loafers Wine Ruth wHvvqUF

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Women's Clogs marone WALTL WALTL maronibraun marone maronibraun Women's Clogs kb.kb_knowledge_base = TARGET_KB_SYS_ID;

       kb.kb_category = TARGET_KB_CATEGORY;

       kb.update();

       gs.print('Updated ' + kbNumber);

   } else {

       s.print('Did not find ' + kbNumber);

   }

}

Lime Women's Outdoor Universal Sports Teva Atomic and Mashup Sandal Original pwRzqUSx

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Clogs marone WALTL maronibraun Clogs Women's marone WALTL Women's maronibraun
Bandolino Flat Ballet Ressie Navy Women’s 0X4wq0