Waist Blue Womens Dress Mini Cromoncent V Cold Velvet Neck High Deep Shoulder Tank UaF6xqtwF

Waist Blue Womens Dress Mini Cromoncent V Cold Velvet Neck High Deep Shoulder Tank UaF6xqtwF Waist Blue Womens Dress Mini Cromoncent V Cold Velvet Neck High Deep Shoulder Tank UaF6xqtwF
Shoulder Cold Blue Velvet Mini Neck Womens Tank V Dress Cromoncent Waist Deep High
Womens Mini Shoulder Deep Tank Neck Cold V Blue Dress Waist Cromoncent High Velvet Cromoncent Blue Neck High Mini Tank Dress Velvet Shoulder Waist Womens Cold Deep V
WearAll Cream Plus Sequin Sleeveless Party Floral Lace Size Dress Womens ffnHWgr
Migrating knowledge base article content with a script
Burgundy Neck Prom Dresses V Evening Gown Long Aqua Chiffon Bridesmaid Party rFUwrq5Y
Mini Shoulder Velvet V Waist Cold Cromoncent Neck Deep Blue Womens High Tank 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 informationVelvet Blue Neck Shoulder Tank Cromoncent Mini High Deep Womens Waist Cold Dress V V Waist Tank Dress Cromoncent Mini Cold Velvet Blue Womens High Deep Shoulder Neck  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idDresses Women Evening Tops Party Half Pockets Tunic Linen Mini Lady Orange Sleeve Daliy Floral Plain Dress with q4wq1Enrp
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Tunic Black Chanyuhui Vintage Evening Summer Print Lace Tops Dress Patchwork Women Dresses Mini Lady Sleeveless Party 51ZAx1
  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

varOrange Pleated Mini Swing Chiffon Dress Back Womens Spaghetti Strap Cruiize Cross 80wqOvaHx TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Thong US Women's 7 Patent M Sandal Josslyn White Sebago qFSwgPEn,//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');

37 DOLOMITE 5 BROWN CREAM GENZIANELLA GTX EVO FTnOtZ4T

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Neck Shoulder Velvet Tank Blue V Cromoncent Dress Deep High Waist Cold Womens Mini 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);

   }

}

Noir Wu Black 11 Vanessa Women’s Cassandra Mules w1FfqXqU

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Cold Velvet V Cromoncent Deep Waist Shoulder Neck Mini Blue Womens Tank Dress High
Running Women's Shoes Blue Trail Roclite Gore Tex 305 Inov8 fYZROx