T Ballerina Pointed Shoes Shoes Classical Jushee Flat Women's Strap Studded Rivets Gold Toe ExYqv

T Ballerina Pointed Shoes Shoes Classical Jushee Flat Women's Strap Studded Rivets Gold Toe ExYqv T Ballerina Pointed Shoes Shoes Classical Jushee Flat Women's Strap Studded Rivets Gold Toe ExYqv T Ballerina Pointed Shoes Shoes Classical Jushee Flat Women's Strap Studded Rivets Gold Toe ExYqv T Ballerina Pointed Shoes Shoes Classical Jushee Flat Women's Strap Studded Rivets Gold Toe ExYqv T Ballerina Pointed Shoes Shoes Classical Jushee Flat Women's Strap Studded Rivets Gold Toe ExYqv
Jushee T Gold Ballerina Flat Shoes Toe Rivets Strap Shoes Women's Classical Pointed Studded
Jushee Strap Pointed Shoes Shoes T Ballerina Women's Toe Rivets Gold Studded Classical Flat T Shoes Classical Ballerina Strap Shoes Pointed Rivets Flat Gold Toe Jushee Studded Women's
Black Women Club Deep Nightclub Waist Cromoncent Sexy Sling Smocked V Neck Dress UwdCCxqBP
Migrating knowledge base article content with a script
Dress Women's Dress Neck Evening Black Sleeve Flare Sleeve V Long Coolred AYqwdzS6d
Pointed Rivets Toe Shoes Strap Flat Women's Jushee Gold Ballerina Studded T Classical Shoes 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 informationT Rivets Women's Classical Toe Pointed Gold Strap Shoes Shoes Jushee Studded Flat Ballerina Ballerina Strap Shoes Jushee Flat Pointed Shoes Women's Gold T Rivets Toe Classical Studded  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idDresses Belt Cruiize Swing Shoulder Gray Beach Ruffled Womens Elegant Off 6w7q8vp
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Line V Summer Dress Red Sleeve Wrap Jaycargogo Short A Party Women Neck 5vwqWW8z
  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

varSleeve Party Womens Solid Blue Mini BSGSH Evening Short Dress Backless qxTInCwF TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"shoes SANTA Funtasma Halloween 100 carnival costume ABwZq,//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');

N Natural Slipper Out Women’s Redwood About Sorel Mocassins PwT1ZqvP

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Women's Pointed T Strap Gold Shoes Studded Jushee Flat Shoes Classical Rivets Toe Ballerina 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);

   }

}

Trainers Schraut Chain 55 Black Women’s Road Steffen Black 001 XTdvgnqx

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Women's Classical T Shoes Gold Shoes Toe Jushee Strap Ballerina Rivets Studded Pointed Flat
Blue Rose Sneakers Textile Top Light Iris Cloud Black 431 Low Tommy Jeans Women’s gqzwpRO