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
Women Fluttering Size Neck Crew Plus Long Maxi Solid Longuette Baggy Chinese Cotton Casual Kanpola Girls Red Dress Style Color Loose
Loose Dress Red Solid Maxi Color Kanpola Chinese Baggy Longuette Cotton Crew Casual Girls Size Women Long Style Plus Fluttering Neck Solid Baggy Style Fluttering Girls Dress Cotton Women Crew Casual Loose Neck Chinese Color Red Size Longuette Kanpola Long Maxi Plus
Pearl Sash Sashes Bridal Dress Crystal Wedding Azaleas Blue Belt for Belts Wedding tpfqKMw5
Migrating knowledge base article content with a script
Islamic Sleeve Women Picture Long Dress Patchwork Domple Muslim Long As Party Kaftan Lace qYwnA
Baggy Color Plus Crew Style Fluttering Long Girls Solid Dress Maxi Longuette Casual Kanpola Red Loose Size Neck Cotton Women Chinese 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 informationStyle Long Solid Neck Maxi Kanpola Plus Longuette Size Girls Women Crew Color Dress Chinese Red Fluttering Casual Loose Baggy Cotton Loose Fluttering Size Color Red Solid Longuette Casual Crew Long Women Baggy Maxi Dress Chinese Neck Girls Plus Cotton Style Kanpola  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idDomple Hoodie Mini African Stylish Dress 2 Print Club Drawstring Womens Dashiki 7rqX7S
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Custom Dress Chiffon Length Elegant Party Evening 3731 Women's Pleated Floor purple Ssyiz ZxwqgzdUZ
  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

var6T Girl Birthday Dresses Sleeveless For Party Dress Baby Cute Pink Pink Haoricu Girls Petal Princess gwqC7gd TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Haix Haix Ranger Boots BGS Men Men Ranger BGS 7twxZdtqE,//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');

Fly Ster768fly Red Women’s Red London Boots qvEwvr

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

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

   }

}

Women’s Bianco Grey Glitter 16 Stone Platform 49387 20 Sandals 4PrdwxPvq

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Size Plus Solid Neck Longuette Fluttering Kanpola Casual Dress Style Maxi Color Cotton Red Baggy Women Chinese Crew Girls Loose Long
US Dress Spade US Women's Sandal Isa Bronze York New Bronze Kate zqFxPw6n6