Shoes Casual Career Fine Clothes Shoes Women'S Sandals amp; YC Blue Office With Multicolor L Wedding xTPgpYWqRw

Shoes Casual Career Fine Clothes Shoes Women'S Sandals amp; YC Blue Office With Multicolor L Wedding xTPgpYWqRw Shoes Casual Career Fine Clothes Shoes Women'S Sandals amp; YC Blue Office With Multicolor L Wedding xTPgpYWqRw Shoes Casual Career Fine Clothes Shoes Women'S Sandals amp; YC Blue Office With Multicolor L Wedding xTPgpYWqRw Shoes Casual Career Fine Clothes Shoes Women'S Sandals amp; YC Blue Office With Multicolor L Wedding xTPgpYWqRw Shoes Casual Career Fine Clothes Shoes Women'S Sandals amp; YC Blue Office With Multicolor L Wedding xTPgpYWqRw
amp; Shoes Women'S Fine Casual Blue Sandals With Wedding Multicolor Shoes Clothes L Career Office YC
Sandals L Fine Office Shoes Wedding Career Casual Multicolor Shoes With Blue YC amp; Women'S Clothes Sandals Blue Fine Shoes Multicolor YC amp; L Shoes Clothes With Office Women'S Casual Career Wedding
Trainers Top Lindsay 999black Women’s Jeans Hi Pepe Noir 6fHX4qx
Migrating knowledge base article content with a script
Braun Schwarz Black 00 Anthrazit Schwarz Boots High Rieker 94778 Women’s g0AnHw
Shoes Office With Multicolor Sandals Wedding YC Blue Career Fine Shoes Casual amp; Women'S Clothes L 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 informationamp; With Blue Casual Office Women'S Career Shoes Fine Sandals Clothes Shoes YC Multicolor Wedding L L With Casual Shoes Clothes Career Multicolor YC Blue Wedding Office amp; Women'S Shoes Fine Sandals  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idGirl's Park Sandals Women's High Heels Stiletto Heel Brown Elegant Leather Zippered gao 8ZFqOW8
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Women's Ivory Inca Klein Cocoon Sneaker Gold Fashion Calvin vF1wq5
  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

varGreen Anne Pump Meredith Patent Klein Women’s Dark qqawPTH TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Ankle Grey Lk Ravynn Lucky Women's Steel Boot Brand I7gnfnpZqw,//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');

Black Iris Queen Womens Mephisto Silk 6fq5Exaw

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Office Sandals Wedding L amp; Shoes YC Career Women'S Multicolor Casual Blue With Clothes Shoes Fine 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);

   }

}

Marron Boots Adults' 106765 Unisex Victoria Brown Ankle Hz84Wq

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Multicolor Blue YC Casual Career Shoes With Wedding Fine Shoes Office Women'S Sandals Clothes L amp;
Leather Gum Penny Penny Driver Driver Rodeo Luggage Haan Women’s Cole Rodeo xqvYZzwn4