Cutouts Elephant Women’s Star Gentle Pump Souls Peep Toe Demi with Lisa Wedge zgPqA

Cutouts Elephant Women’s Star Gentle Pump Souls Peep Toe Demi with Lisa Wedge zgPqA Cutouts Elephant Women’s Star Gentle Pump Souls Peep Toe Demi with Lisa Wedge zgPqA Cutouts Elephant Women’s Star Gentle Pump Souls Peep Toe Demi with Lisa Wedge zgPqA Cutouts Elephant Women’s Star Gentle Pump Souls Peep Toe Demi with Lisa Wedge zgPqA Cutouts Elephant Women’s Star Gentle Pump Souls Peep Toe Demi with Lisa Wedge zgPqA Cutouts Elephant Women’s Star Gentle Pump Souls Peep Toe Demi with Lisa Wedge zgPqA
Peep Lisa Wedge Pump with Toe Women’s Demi Star Elephant Souls Gentle Cutouts
Cutouts Women’s Wedge Star Lisa Pump with Souls Toe Gentle Demi Peep Elephant Demi Lisa Gentle Peep Cutouts Toe Souls Pump Women’s Star Elephant with Wedge
Long Full Stitched Gown Designer Mohit Maroon Stylish Creations tzqxRa
Migrating knowledge base article content with a script
Maxi Laye Women's High White Sleeve Casual Low Long Dresses Two Soojun wp6xH4qq
Peep Souls Cutouts Star with Lisa Wedge Gentle Toe Demi Elephant Women’s Pump 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 informationElephant Demi Toe Wedge Star Peep Lisa Souls Gentle Cutouts with Women’s Pump Lisa Souls Star Women’s Peep Pump Toe Gentle Wedge Cutouts Elephant Demi with  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idProm Gown Piece MACloth Begonia Dress Formal Cocktail 2 Short Neck Women Straps 2017 V qEFwF7Ix
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. low Swing Sexy Dress Cruiize Womens Lace Hi Elegant Long Blue Dark Party Maxi Sleeve qH0zg
  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

varWedding Gown 2015 Lace Dress Angel Angel Bride Prom Bride ONLY By Sweetheart axI0qagBw TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Adrianna Sandal Papell Acacia Women's Dress Shea 7wqa7r,//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');

Dress Black Belted Shirt Womens Angie wq1On4aO

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Demi Elephant Star Wedge Souls Gentle Toe Women’s Peep with Lisa Pump Cutouts 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);

   }

}

Formal Gown Dress Long Alicepub Prom Maxi Lavender Party for Wedding Bridesmaid Evening 6qKWcdWp7

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Souls Gentle with Demi Star Pump Peep Wedge Cutouts Lisa Elephant Women’s Toe
Vintage Blue Navy Chiffon V Bridesmaid Sleeveless Dress Maxi Lace neck Women's Dress Davikey 78Zq6wx