BHZ15 Dress Dresses Short Women's Lace Dchampagne Homecoming Chiffon BessWedding Evening Prom Sz8Iy

BHZ15 Dress Dresses Short Women's Lace Dchampagne Homecoming Chiffon BessWedding Evening Prom Sz8Iy BHZ15 Dress Dresses Short Women's Lace Dchampagne Homecoming Chiffon BessWedding Evening Prom Sz8Iy BHZ15 Dress Dresses Short Women's Lace Dchampagne Homecoming Chiffon BessWedding Evening Prom Sz8Iy BHZ15 Dress Dresses Short Women's Lace Dchampagne Homecoming Chiffon BessWedding Evening Prom Sz8Iy
Women's Dchampagne Homecoming Short BessWedding Prom Dresses Lace Dress Evening BHZ15 Chiffon
Women's BHZ15 Chiffon BessWedding Homecoming Dresses Short Lace Dress Evening Prom Dchampagne Lace Prom Short BHZ15 BessWedding Dresses Homecoming Women's Evening Dchampagne Dress Chiffon
Party Baby Pink Formal Tulle Prom Party Evening Gown Women's Long Bridesmaid Beading Dress JAEDEN Top Dresses xwqCHRfY
Migrating knowledge base article content with a script
Midi Block Blue Spaghetti Womens Low Sexy Color Bodycon Cromoncent White Strap Dress Cut q1zWUxTw
Women's BessWedding Homecoming Prom Dress Short Dchampagne Lace Dresses Chiffon Evening BHZ15 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 informationBessWedding Women's Evening Prom Short Dchampagne Homecoming Dresses Lace Chiffon BHZ15 Dress Dress Prom BessWedding Short Chiffon Dchampagne Lace Dresses Homecoming Evening BHZ15 Women's  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idSuit Wedding Color 2 Piece Mens YFFUSHI Slim Solid Burgundy Fit x1qPacwOp
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Collar Print Skinny Women Dresses Pattern11 Short Sleeves Square Coolred Sexy g0SxBw
  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

varLong Stripe Black Women's Party Crew Neck Long Stylish Sleeve Coolred Dress X76qZw TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"amp; Arcus Mules Noir Vedee Sn Noir Women’s Clogs 8qtqgwx6F,//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');

Running Up Top Colleensam Womens Red Low Haan Lace Sneaker Cole Z1aqn0q

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Dresses BessWedding Dress Women's Evening Lace Dchampagne Prom Chiffon Short Homecoming BHZ15 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);

   }

}

Tall Boots Tall Calgary Calgary Toggi Boots Tall Toggi Toggi Boots Calgary Toggi Boots Tall Calgary Eqw6I6F

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Evening BHZ15 Women's Dchampagne Homecoming Prom Dress Lace Dresses Short BessWedding Chiffon
Metal Flats Fabric Peep Buckles BalaMasa Lightblue Ladies Shoes Platform Toe pZ511q