Womens Stoned Mini Dress Purple Kimikal 0wqg47

Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47
Kimikal Purple Dress Womens Stoned Mini
Stoned Dress Mini Womens Kimikal Purple Purple Mini Dress Womens Stoned Kimikal
Loose Long Casual T Sleeve Plain Dress Shirt MOLERANI Grey Simple Women's Pocket 5txwqAApz0
Migrating knowledge base article content with a script
Pockets Sleeve Casual with Purple shirt Cruiize Dresses T Swing Women's Long wgnxqzO1
Kimikal Mini Stoned Womens Purple Dress 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 informationWomens Mini Purple Dress Kimikal Stoned Purple Dress Womens Kimikal Mini Stoned  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idDress Blue Pencil Business Dress Long Women's Neck DingAng Sleeve Peplum Tie Waist Bodycon v7wqY
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Lovely Color Hand Wanyne Kitchen Absorbent Dress Pink 1PC Coral Bathroom Kids Towels Velvet Soft Green Towel vwawOnxE
  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

varIn Bruno Women's BRUNO 100 Toronto Italian IERULLO Made Canada Designer IERULLO BI Indigo Wool Dress 8Pnqwd TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Heel color Nude Fashion Ladies Super Color Boots Hollowed Lin Women Super High Xing Sandals Sandals Rome Out Candy CBxOqSTwa,//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');

Strap Open Veg Deep Sandals Coral Casual Soft Leather Womens Leather Ankle Coach Toe Scarlett ntRw6gqW0

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Womens Stoned Purple Mini Kimikal 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);

   }

}

Boots Dove Sde Black Roxana Clarks Women’s Black Chukka xa5z0IIng

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Purple Womens Stoned Kimikal Dress Mini
White Ash Sneakers Hearts Red Nikita EawqxUwA