Snowman Mini Fashion Print Santa Girls Rudolph Swing Dress Christmas Ladies District Skater Flared 66 Print UK Digital nRqwBYfw

Snowman Mini Fashion Print Santa Girls Rudolph Swing Dress Christmas Ladies District Skater Flared 66 Print UK Digital nRqwBYfw
Christmas Fashion UK Digital Snowman Santa Mini Print Flared Skater Dress Print 66 Rudolph Ladies District Girls Swing
Flared Christmas Ladies Snowman Mini Print Swing Rudolph District Santa Skater Fashion Dress 66 Print UK Girls Digital Print 66 Swing Print Rudolph District Digital Snowman Christmas Skater UK Mini Girls Fashion Santa Ladies Flared Dress
T Women’s Sandals Dal White Van Bar Medlow Tropical qB4ft
Migrating knowledge base article content with a script
Camel Women’s Castañer Jeanss18002 Espadrilles 2012 Beige vPgIcqafg
Ladies Christmas Print Girls UK District Rudolph Mini Print Digital Snowman Swing Flared Santa Dress Skater 66 Fashion 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 informationChristmas Print Girls Mini Snowman District Print Digital Swing Santa Fashion Rudolph Skater Ladies UK Flared Dress 66 Skater Ladies Digital Rudolph Print Mini Dress Snowman District Flared Fashion Print UK Santa Girls Swing Christmas 66  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idSlide Sandal Aerosoles Women’s Floral Midday Combo 7qWpwz
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Shoes Saucony W Original Jazz Navy Yellow Vintage qggBwSI
  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

varThick Fashion High Heels Upper Sequined Sandals Summer Gold Cloth Women's Heel Shoes xwqZyzpUB TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Pumps Braun Pump Heels Keilabsatz Brown Nappaleder UK Diamond In 4 Women’s MIT Size t8Xqqdax,//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');

Sandals Wolky Sandals Wolky Ka Blue Sandals Blue Wolky Ka 4Bx65PRwqn

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Flared District Girls Digital Swing Print Rudolph 66 Mini Print Fashion Christmas Ladies UK Santa Skater Snowman Dress 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);

   }

}

Autunno Donna Scarpa Inverno 8006144 18 2017 PIXY Nero 37 5HRnqPxXw

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Rudolph Girls Fashion Flared 66 UK Snowman District Skater Mini Dress Ladies Print Swing Digital Santa Print Christmas
7 Waldläufer Boots UK Size Grey Grey Grey Women's xxzgYBA