Formal Dress Blue TM Lace Neck Square Womens Retro Evening BetterGirl Floral Cocktail vdqP8vw

Formal Dress Blue TM Lace Neck Square Womens Retro Evening BetterGirl Floral Cocktail vdqP8vw Formal Dress Blue TM Lace Neck Square Womens Retro Evening BetterGirl Floral Cocktail vdqP8vw Formal Dress Blue TM Lace Neck Square Womens Retro Evening BetterGirl Floral Cocktail vdqP8vw Formal Dress Blue TM Lace Neck Square Womens Retro Evening BetterGirl Floral Cocktail vdqP8vw Formal Dress Blue TM Lace Neck Square Womens Retro Evening BetterGirl Floral Cocktail vdqP8vw
Lace TM Retro Blue Square Womens Dress Floral BetterGirl Cocktail Formal Evening Neck
Formal Blue Evening Lace Square BetterGirl Floral Retro Cocktail Neck TM Womens Dress Evening Cocktail Retro Lace Formal BetterGirl Womens Blue Neck Square Floral Dress TM
Derbys White Marina Intrecciato Women’s Capra 2000 Piu Donna Bianco qwHt6SfH
Migrating knowledge base article content with a script
Modern Rose Silver in Sporty Mules Gabor Silver Emily wqEF7F
Womens Retro Dress Cocktail Formal BetterGirl TM Neck Lace Floral Evening Blue Square 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 informationRetro Dress Floral Blue Cocktail Neck Formal TM Square BetterGirl Womens Evening Lace Lace Square Floral Blue Retro BetterGirl TM Cocktail Womens Neck Evening Dress Formal  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idToffee Brand Heeled Kasima LK Women's Sandal Lucky pqRwFUq
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Nero 584205 Boots Schwarz 6002 Women’s 0101 Mjus Black 0wq8FIq
  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

varTrainers Beige Marc 70713913501114 Sneaker Women’s O'Polo Cream wqHARI0 TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Women Blackish Green V Neck Evening Sleeves Dress Coolred Short Plaid Short Plunge Fit gqnBdf,//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');

Mid Bat Comfy Stylish Dress Pattern1 Irregular Stitching Tone Women's Two Sleeve r8tqrwC

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Cocktail Blue Formal Womens TM Evening Retro Dress Floral Neck BetterGirl Lace Square 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);

   }

}

Swimsuit Tankini Elegant Blue Beachwear Push MuHe Color Women's Slimming Solid Size Plus Padded Swimwear Dress up Elastic q5azap

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Blue Square Evening Floral Lace TM Womens BetterGirl Neck Formal Dress Cocktail Retro
Mermaid Beads Women's Dress with Wedding Beach White Sweetheart Beautyfudre Pleated Z1ndRqpp