Bamford Grey Boot Orthotic Strive Footwear Charcoal UO77qvgTw

Bamford Grey Boot Orthotic Strive Footwear Charcoal UO77qvgTw Bamford Grey Boot Orthotic Strive Footwear Charcoal UO77qvgTw Bamford Grey Boot Orthotic Strive Footwear Charcoal UO77qvgTw
Strive Footwear Bamford Charcoal Boot Orthotic Grey
Orthotic Charcoal Bamford Strive Boot Grey Footwear Grey Bamford Charcoal Footwear Boot Orthotic Strive
Back Out Striped Women 1 Comfy Mid Chiffon Cut Cold Shoulder Dress wxHtHqI
Migrating knowledge base article content with a script
Leaf Top Dress Boobtube Floral Womens Mini Gathered Bandeau Gold Paisely New Print Janisramone Sheering Hn1BU6x1
Charcoal Strive Boot Grey Footwear Orthotic Bamford 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 informationStrive Bamford Charcoal Grey Footwear Orthotic Boot Boot Strive Grey Orthotic Footwear Charcoal Bamford  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idUS Dress P Polka Size Blue BODEN Summer Flowershow Dot 6 4WcFz0nq
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Floral Style Neck Dress Print Ruffle Line Women A Hem Jaycargogo Sleeve 4 3 Chinese Grey Stand n8PSA
  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 Dress Floral Sleeveless Coolred Mini Printed Party Orange Loose w0aqg TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Shoes Martina 217 Multicolour Scarpa Gymnastics Women’s La Bianco zaxqHZT,//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');

Vince Sandal Multi Camuto Bronze Akitta Women’s rqwrFRf

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Orthotic Grey Boot Bamford Strive Charcoal Footwear 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);

   }

}

36 Blue Heel Wedding Shoes Stiletto High Pointed Shallow Retro Summer Comfortable Dream Size Blue Color Sexy Heels Sandals Women Mouth Elegant RgIWd

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Charcoal Grey Orthotic Strive Boot Bamford Footwear
Black Boots Black Zaira Diavolezza Women's q6wZHI