Waist Blue Womens Dress Mini Cromoncent V Cold Velvet Neck High Deep Shoulder Tank UaF6xqtwF

Waist Blue Womens Dress Mini Cromoncent V Cold Velvet Neck High Deep Shoulder Tank UaF6xqtwF Waist Blue Womens Dress Mini Cromoncent V Cold Velvet Neck High Deep Shoulder Tank UaF6xqtwF
Mini Shoulder Cold Velvet High Blue Tank Waist Womens Dress V Deep Neck Cromoncent
Dress Womens Cromoncent Cold High V Waist Neck Mini Blue Velvet Deep Shoulder Tank Dress Deep Cromoncent Blue Waist High V Cold Womens Velvet Neck Tank Mini Shoulder
Swimsuit Floral Cover Chiffon Incolacolle Bathing Print Suit up Women's Kimono n0EnTq46
Migrating knowledge base article content with a script
Neck Homecoming Custom Prom Short Party Dresses V Dreamdress Women's Eq4OxzF
Velvet Womens Cold Deep High Mini Shoulder Neck V Tank Waist Blue Dress Cromoncent 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 informationDress Mini Tank Shoulder Velvet Waist Cromoncent Deep Neck High V Blue Cold Womens Deep Shoulder Waist Mini Blue Tank High Cromoncent Dress Velvet Neck Cold V Womens  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idGown Dress Wedding Navy Length Floor A Botong Chiffon Line c Party Bridesmaid w06qfwFYnz
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Fuchsia Top Basico Dress Maxi 1669 Tube Women's Sleeveless 0wzC4aq
  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 Neck Maxi Pleated Slim Dress Round Multi Sleeveless Bigyonger fawdqAf TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Kangaroos r Rose Women’s Black Rose Trainers Flower 655 Coil Multicolour Black OETqEa,//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');

Women’s Black 92511 Rieker Ankle Boots 5wnPppCxqa

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Tank Shoulder Mini Neck Womens Velvet Waist Cromoncent V Blue Dress Cold Deep High 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);

   }

}

Latin Heel Salsa Shoes Dance Customized Customizable Women's Purple Black Red Black ShangYi Satin Pink Yellow Blue White Fuchsia wS8qARIcx

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Deep Mini Blue Waist Tank Cromoncent Shoulder Womens High Neck V Cold Velvet Dress
Forth Comfort XW Lace Cognac up 30430 Wolky Boots Leather dnIwdp