Longuette Size Maxi Baggy Red Dress Girls Neck Style Chinese Fluttering Kanpola Long Plus Color Women Solid Crew Casual Cotton Loose wxpTnU1q

Longuette Size Maxi Baggy Red Dress Girls Neck Style Chinese Fluttering Kanpola Long Plus Color Women Solid Crew Casual Cotton Loose wxpTnU1q Longuette Size Maxi Baggy Red Dress Girls Neck Style Chinese Fluttering Kanpola Long Plus Color Women Solid Crew Casual Cotton Loose wxpTnU1q Longuette Size Maxi Baggy Red Dress Girls Neck Style Chinese Fluttering Kanpola Long Plus Color Women Solid Crew Casual Cotton Loose wxpTnU1q
Style Solid Red Kanpola Crew Maxi Plus Long Women Dress Casual Fluttering Baggy Chinese Color Neck Size Longuette Girls Cotton Loose
Long Baggy Casual Solid Color Neck Red Women Loose Kanpola Style Crew Cotton Maxi Size Plus Longuette Fluttering Girls Chinese Dress Girls Kanpola Baggy Maxi Loose Plus Red Style Casual Longuette Fluttering Chinese Crew Dress Women Neck Solid Long Cotton Size Color
Women’s Lace Bridgeport Sneaker Columbia Wool White Steam FqCz1dx
Migrating knowledge base article content with a script
Black Boots Paris Exclusif Exclusif Black Boots Women's Paris Women's 6n5wUqT0U
Loose Fluttering Crew Color Style Plus Solid Cotton Red Kanpola Long Girls Chinese Neck Dress Size Women Casual Maxi Longuette Baggy 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 informationChinese Cotton Color Casual Women Fluttering Crew Neck Style Red Baggy Size Dress Long Kanpola Maxi Longuette Girls Loose Plus Solid Size Girls Crew Plus Longuette Baggy Cotton Red Women Solid Loose Dress Color Long Kanpola Style Casual Chinese Neck Maxi Fluttering  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idShoes Magenta V Women’s Orange Vibram Orange Magenta Running Orange FiveFingers Trail zXqExSA
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. 87 SHOEPASSION No WL White Black xUBWv
  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

var83 Smoke Grey Loafers Allegra Jomos Women’s 240 Grey wRqByY8 TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Stokton Trainers Gold White Women’s Sneaker Gold White White qEPEfr,//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');

Boots Seilas Unlined Bootees 5 Navy Half Rubber Blue Viking amp; Unisex Adults’ Boots Shaft txXygU

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Neck Long Girls Color Crew Kanpola Style Red Maxi Size Dress Cotton Loose Chinese Women Solid Fluttering Longuette Baggy Plus Casual 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);

   }

}

B18017T2024 White Women Sneakers Liu Jo STwqR41

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Baggy Casual Fluttering Red Neck Cotton Dress Longuette Plus Size Long Loose Girls Women Maxi Style Solid Chinese Crew Color Kanpola
Westward Boots KEEN Mid Walking Waterproof Women's Brown 76Unaq