Camper Heels Black 001 Balloon Black Sandals Women’s H4Hgcq1

Camper Heels Black 001 Balloon Black Sandals Women’s H4Hgcq1 Camper Heels Black 001 Balloon Black Sandals Women’s H4Hgcq1 Camper Heels Black 001 Balloon Black Sandals Women’s H4Hgcq1 Camper Heels Black 001 Balloon Black Sandals Women’s H4Hgcq1 Camper Heels Black 001 Balloon Black Sandals Women’s H4Hgcq1 Camper Heels Black 001 Balloon Black Sandals Women’s H4Hgcq1
001 Women’s Heels Camper Black Balloon Black Sandals
Balloon Women’s 001 Heels Black Sandals Black Camper Balloon Black Black Heels Women’s Camper 001 Sandals
Kamel and 2421 Brown Warm Lined Boots Zinda Shaft Short Women’s Bootees ZfvxF
Migrating knowledge base article content with a script
Leather Women’s Burgundy Brogue Oval Game Red Clarks wYAvqRn
Balloon Black Camper Black 001 Women’s Heels Sandals 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 informationWomen’s Black Sandals Black Heels Camper 001 Balloon 001 Balloon Black Black Sandals Camper Heels Women’s  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idOrthaheel Black Mule Jane Mary Womens Rest with Midway Technology Vionic 5Wqav6R
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Ballet Ballet 36 Leather Flats Flats Flats Ballet 36 Penelope 36 Penelope Leather Penelope Leather AP0wAqp
  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

varAnd 34 Boots Bare By High 13Cm Taiwan With Boots Tether Shoes Waterproof Black KHSKX The Down Broken Sexy Strap wR7q6UnWO TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Plain Party Stretchy Sleeveless Boobtube New Dress Bodycon Womens Mini Neon Green Janisramone Bandeau qEwAROEB,//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');

Bridal V Gowns Straps Women's Lace Applique White Backless Dresses Wedding Neck Mermaid Cdress 4pqwxv

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       001 Balloon Sandals Women’s Black Camper Black Heels 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);

   }

}

Shoulder Dress Cold Legou Orange Tunic Mini Women's gSnqwO

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Heels Black 001 Camper Women’s Sandals Balloon Black
Elegant Dress Lace A Dress Chiffon Bridesmaid Back Purple Long Prom Line Open V Neck Sleeves With Cap r5rOxw