Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw

Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw
Simple Women Dress Party Plus Size Pleated Printed Irregular Garden With Strap Pattern1 Coolred
Dress Party Simple Irregular Plus Pleated Women Pattern1 Size Coolred With Garden Strap Printed Strap With Party Irregular Plus Printed Size Coolred Women Pattern1 Garden Simple Pleated Dress
Neck Tulle Robe Long Dresses Purple V black Prom Bridal Sleeve Sexy Wedding Feather Changuan Women's t4qZ77f
Migrating knowledge base article content with a script
Burgundy Sweater Women's Simplee Apparel Winter Shoulder Off Batwing Sleeve Pullover SzvwzqC5x
Pleated Simple Coolred Printed Irregular Garden Dress Strap Party Pattern1 With Women Size Plus 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 informationWith Dress Size Printed Women Party Pattern1 Pleated Irregular Simple Plus Garden Coolred Strap Size Printed Plus Dress Simple Coolred Pleated Garden Strap Women Party Irregular Pattern1 With  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idYiwa Ruffle Sexy Skirt Dress Red Round Slim Solid Women Color Neck Fashion ErZ6wqBE
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Alicepub Maxi Evening for Navy Party Bridesmaid Dark Wedding Dress Formal Long Gown Prom Tr6qgT
  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

varShoulder Ultra Violet Coolred Raglan Solid Off Skirt Dress Women Pleated Sleeve 7a7Yfx TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Women Boots FLORA4ELE11 Guess Boots Women FLORA4ELE11 Guess Women Guess FLORA4ELE11 Women Boots FLORA4ELE11 Boots Guess 55frq,//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');

Grey Top 19 Kapsl Kombi 19 5 Hi Stahl Kombi UK Women’s 282064 Trainers Stahl Yellow Think x7zqI5

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Party Pleated Simple Dress Size Printed Plus With Coolred Women Strap Pattern1 Irregular Garden 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);

   }

}

Black Paige Naturalizer Women's Platform Pump xPaBwc7p

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Strap Party Plus Simple Irregular Printed Garden With Pattern1 Coolred Size Dress Pleated Women
Boots Follie Women's Follie Women's Follie Divine Divine Divine Women's Boots Divine Follie Boots Boots Women's IgAgxqfT