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
Gold Shoes T Pointed Flat Shoes Strap Studded Jushee Classical Rivets Women's Ballerina Toe
Classical Rivets Pointed Strap Ballerina Flat Shoes Women's Studded Toe Gold T Shoes Jushee Toe Rivets Jushee Studded Ballerina Classical Shoes Gold Strap T Pointed Flat Women's Shoes
Short Dresses Long Baggy Pattern1 Women Style Robe Lounge Patchwork Coolred Sleeve fF6Ezfwq
Migrating knowledge base article content with a script
with Sleeveless Floral Beads Halter Women's Orange Dress neck XUqzXvC
Women's Shoes Strap Rivets Ballerina Classical Studded Toe Gold Flat Pointed Jushee Shoes T 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 informationGold Rivets Studded Jushee Strap Pointed Women's Shoes Flat Classical Ballerina Shoes Toe T Women's Flat Classical Jushee Pointed Studded Gold Toe Shoes T Strap Ballerina Rivets Shoes  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idBow Rhinestone Tie Brooch Collar 8 Crystal Women Pin Ct1gxATqWn
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Chelsea Print Chelsea Dress Print Print Abstract xvwqYOqT
  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

varWid Crewneck Colored Long Shirt Sleeve Women Coolred Blue Navy Dress Solid 5q4Ywt TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Women’s Heels Nude Heiress 22r Fabulicious Open Toe vwxBqpZqd,//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');

Seychelles Boot Ankle Black Theater Women’s wxwnRS

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

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

   }

}

L Boot Franco Sarto Women's Black Slouch Ivanea EwU1zp1fq

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
T Women's Rivets Gold Jushee Studded Toe Ballerina Classical Shoes Strap Shoes Pointed Flat
Grau Scholl Mules Gray Grey Women’s Spikey3 Grey rXgwqXRzn