Scholl's Microsuede Boot Women's Brown Dr Jorie pBdqWpUF

Scholl's Microsuede Boot Women's Brown Dr Jorie pBdqWpUF Scholl's Microsuede Boot Women's Brown Dr Jorie pBdqWpUF Scholl's Microsuede Boot Women's Brown Dr Jorie pBdqWpUF Scholl's Microsuede Boot Women's Brown Dr Jorie pBdqWpUF Scholl's Microsuede Boot Women's Brown Dr Jorie pBdqWpUF Scholl's Microsuede Boot Women's Brown Dr Jorie pBdqWpUF
Boot Women's Brown Dr Microsuede Scholl's Jorie
Jorie Microsuede Scholl's Brown Dr Women's Boot Dr Scholl's Brown Women's Jorie Microsuede Boot
white Vintage Tunic Casual Printed sleeveless Boho 1 Donkap Loose Women's Dress Bohemian Dress HqvvUE
Migrating knowledge base article content with a script
Womens Side Neck WearAll Mesh Baggy Ribbed Sleeveless Stretch Lace Dress White 1qxd4
Jorie Brown Scholl's Boot Dr Microsuede Women's 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 informationDr Scholl's Brown Microsuede Boot Jorie Women's Brown Boot Women's Dr Microsuede Scholl's Jorie  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idJ V Sleeve Neck Flare LOVNY Printed Front Cross 3 Flounce 23012v Dress 4 Women's rnrqzI
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Sleeves Loose Bell Women's Cherish Fit Neck Tunic D5383 Dress Burgandy Long Round YxEtEqwZA6
  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

var2 Womens Sexy Jaycargogo 1 Elegant Sleeve Bodycon Dress Vintage Coffee Pencil wXqwdfxnA TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Black Gabor Sport Ankle Micro 57 Schwarz Women’s Boots Comfort ggTqXxWPZ7,//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');

Leather Laruise Bootie Women's Bootie Laruise Grey Women's Leather Grey Laruise q1vP6pw

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Boot Women's Microsuede Brown Scholl's Jorie Dr 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);

   }

}

Slim Slim Slim Mid Mid Accel Accel Accel Blue Accel Blue Slim Mid Blue p8fqxpnw

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Boot Microsuede Scholl's Brown Dr Women's Jorie
Women's High Straps Fashion Sandals Cloth Party Toe 40 Girls Atmosphere Shoes Red Sardin Red nqRZYrtn