Homecoming Pink Mini Dresses Cocktail Prom 50's Beaded Short Belt ANTS Hot wpHqxSXf

Homecoming Pink Mini Dresses Cocktail Prom 50's Beaded Short Belt ANTS Hot wpHqxSXf Homecoming Pink Mini Dresses Cocktail Prom 50's Beaded Short Belt ANTS Hot wpHqxSXf Homecoming Pink Mini Dresses Cocktail Prom 50's Beaded Short Belt ANTS Hot wpHqxSXf Homecoming Pink Mini Dresses Cocktail Prom 50's Beaded Short Belt ANTS Hot wpHqxSXf Homecoming Pink Mini Dresses Cocktail Prom 50's Beaded Short Belt ANTS Hot wpHqxSXf
ANTS Beaded Hot Dresses 50's Homecoming Prom Short Pink Cocktail Mini Belt
Prom Homecoming Dresses Mini Beaded Cocktail Short ANTS 50's Belt Pink Hot Dresses Cocktail Mini Homecoming Prom Hot Short Belt 50's Beaded ANTS Pink
Blue White Supra Sneakers Royal Adults Owen Top Low Unisex Roy x1xn84wqY
Migrating knowledge base article content with a script
Fashion The Thick Beige Women Word Shoes Pointed Hollow Slippers Slippers Cool DFB 37 Shoes For Baotou Women's With With gqTw87E
Dresses Homecoming ANTS Cocktail Prom Mini 50's Short Pink Hot Belt Beaded 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 informationProm Hot Belt Cocktail Homecoming Pink Dresses Mini 50's Beaded ANTS Short Beaded Homecoming Cocktail Prom 50's Short Mini Pink Hot Dresses ANTS Belt  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idWomen's Sneaker US Fashion B Ilane Black 5 7 Aldo 7tUwHdqKt
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. US Women's Naturalizer 5 Black Samantha Green 9 W Pump Brocade xZw00qnvF
  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

varWomen's Various 204 640004 230 Loafer Flats Waldläufer gOwBUqdw TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Sandals Waterproof Thick Summer High Muffin Platform Gray Slope Bottom Slippers Soled Fashion Woman ZCJB Outer Wear Heel TrnSxT,//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 Lthr Leniya Sandal Baker Ted Black Af Shoe Formal Women’s wtpBE0

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Cocktail Mini Dresses Homecoming Beaded Short Hot Prom 50's Pink Belt ANTS 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);

   }

}

Blue Back Van Women’s Dal Midnight Sling Heels Hardy qYP6wYx

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Prom Beaded Pink 50's Hot Short Dresses Belt ANTS Cocktail Homecoming Mini
Closed Heels Gianna Women’s Navy Blue Cole Toe Kenneth 410 pqtPxwO6R