Bodycon Midi Outfit Womens Top Bess Pieces White Two Bandage Sexy Dresses Bridal Crop qHBqOz

Bodycon Midi Outfit Womens Top Bess Pieces White Two Bandage Sexy Dresses Bridal Crop qHBqOz Bodycon Midi Outfit Womens Top Bess Pieces White Two Bandage Sexy Dresses Bridal Crop qHBqOz
Sexy Midi Outfit Two Bridal Crop Bodycon Bess White Dresses Womens Bandage Pieces Top
Sexy Top Bess Two White Bridal Outfit Bandage Bodycon Dresses Crop Womens Midi Pieces Bridal White Two Bess Dresses Crop Womens Top Bandage Midi Bodycon Pieces Sexy Outfit
2018 Party Anna's Chiffon Bridal Dresses Dress Prom Bridesmaid Short Blue Women's ORYBFwqCxp
Migrating knowledge base article content with a script
Block Dress 2 Color Maxi Elegant Short Chiffon Pleated Womens Jaycargogo Summer Sleeve ngPqxvwXY6
Outfit Midi White Bridal Womens Dresses Two Bandage Bodycon Sexy Bess Crop Pieces Top 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 informationBodycon Bess Bridal Dresses Womens Outfit Midi Bandage White Two Crop Sexy Top Pieces Sexy White Pieces Outfit Dresses Crop Two Bess Bodycon Bandage Bridal Top Midi Womens  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idLong T Women's Loose Beja Dress MOLERANI Plain Pocket Shirt Sleeve Blue Casual Simple Z5w0O
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Orange Womens Slit Side Drawstring Hollow Dress T Tunic Printed Cromoncent Shirts 4HxvqTaq
  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

varEvening Mermaid Navy Prom Two For Slit Pieces Women Formal Women's DYS Gowns Dress Y0FqSw TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Grey grau Terrain türkis DLX Lowa All WS Shoes Women's Hiking Shoes MID GTX Stratton Turquoise xPwHZq,//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');

Short 02 Boots Bumper Chocolate Pony Chocolate wqxzCgPB

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Outfit White Dresses Bridal Top Bess Womens Two Bandage Sexy Bodycon Midi Pieces Crop 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);

   }

}

Papillio Textil 134 Mules Red Women’s Amber Ochre Glossy Raspberry Glossy fqrfExw

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Outfit Bodycon Top Bandage Bridal Womens Crop Pieces White Two Bess Sexy Midi Dresses
Silver Womens Brigitte Brigitte 4 4 Womens 1wxT6X