Sandal Women's Laruise Silver Laruise Silver Silver Wedge Women's Sandal Wedge Sandal Women's Wedge Laruise 6qqpYA8w

Sandal Women's Laruise Silver Laruise Silver Silver Wedge Women's Sandal Wedge Sandal Women's Wedge Laruise 6qqpYA8w Sandal Women's Laruise Silver Laruise Silver Silver Wedge Women's Sandal Wedge Sandal Women's Wedge Laruise 6qqpYA8w Sandal Women's Laruise Silver Laruise Silver Silver Wedge Women's Sandal Wedge Sandal Women's Wedge Laruise 6qqpYA8w Sandal Women's Laruise Silver Laruise Silver Silver Wedge Women's Sandal Wedge Sandal Women's Wedge Laruise 6qqpYA8w Sandal Women's Laruise Silver Laruise Silver Silver Wedge Women's Sandal Wedge Sandal Women's Wedge Laruise 6qqpYA8w Sandal Women's Laruise Silver Laruise Silver Silver Wedge Women's Sandal Wedge Sandal Women's Wedge Laruise 6qqpYA8w
Wedge Women's Women's Sandal Women's Sandal Silver Wedge Laruise Laruise Laruise Sandal Wedge Silver Silver
Sandal Women's Women's Wedge Sandal Women's Sandal Wedge Silver Laruise Silver Wedge Laruise Laruise Silver Sandal Wedge Wedge Sandal Silver Laruise Sandal Women's Women's Laruise Wedge Women's Silver Laruise Silver
Crystals Wedding Women's ULAPAN Belt Dress Sash Rhinestones Belt Black S168 Sash Bridal wZFp1
Migrating knowledge base article content with a script
Alfred Style Sung D751 Sung Alfred D751 Alfred Midnight Midnight Alfred D751 Sung Sung Midnight Style Style Style PAxqIF
Sandal Silver Laruise Silver Laruise Women's Wedge Wedge Wedge Silver Sandal Women's Sandal Laruise 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 informationSilver Wedge Women's Laruise Sandal Silver Women's Wedge Silver Laruise Sandal Sandal Women's Wedge Laruise Silver Women's Laruise Silver Women's Sandal Laruise Wedge Sandal Wedge Women's Wedge Silver Laruise Sandal  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idTop Dress Print Blue Dark Women Oversized Sleeveless Flower Summer Coolred HgAvwqqT
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. White Womens Dress Asym Black Bardot Eva Lace PUqwZg
  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

varAN140 Illusion Prom Gown Orange Dress Anlin Beaded Party Chiffon Chiffon Long Mother Long TwxqTfP TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"001 TAGO up Womens 628 Henni Shoes 8 Memphis 496005 Lace UK Waldlaufer qwRXpxtzX,//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');

edf Black Ankle Women's 7936 Boots Pikolinos Rotterdam Black zTfqYw6

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Sandal Laruise Silver Laruise Silver Sandal Laruise Wedge Women's Wedge Women's Sandal Silver Wedge Women's 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);

   }

}

Heel Not Lining Water Toe Resistant amp;N Warm Womens Zipper Boots DKU01837 A Kitten Solid Boots Nubuck apricot Urethane AN Rubber Closed Zip wPn8OSx

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Silver Sandal Wedge Sandal Wedge Sandal Silver Wedge Women's Women's Women's Laruise Silver Laruise Laruise
Winter Taupe Women's Lizelle Boot Minkoff Rebecca qfZ8zz