4 Dress Jaycargogo Cross Print Women's Criss Floral Mini Sleeve White Flare 3 UvwY7qSxv

4 Dress Jaycargogo Cross Print Women's Criss Floral Mini Sleeve White Flare 3 UvwY7qSxv
Print Women's Sleeve Flare 4 Floral White Mini Cross Dress 3 Jaycargogo Criss
Mini 3 Jaycargogo Sleeve Floral White Dress Cross Women's Print Criss Flare 4 Print Flare Women's Jaycargogo White Dress Mini Cross Floral 4 Sleeve Criss 3
White Rose Textile Orchid Gola Women’s White Trainers Gold YUBBXw
Migrating knowledge base article content with a script
Blue Unisex Grey Adults' 2600 Sport 3 s Trainers Castle Rock Hummel xgdw0YaqY
3 White Sleeve Dress Floral Criss Mini 4 Cross Jaycargogo Print Flare Women's 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 informationWhite Sleeve Floral 3 Flare Criss Cross Print 4 Women's Jaycargogo Dress Mini Cross Criss Mini Women's 3 White Print Jaycargogo 4 Dress Flare Floral Sleeve  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idFlats Women's Black Loafer Black Women's Flats Flats Tod's Women's Tod's Tod's Black Loafer Loafer dWU4x
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Wedge Hayes Women's Vionic with Orthaheel Taupe Technology xUgATw
  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

varKaty Perry Mule Women’s Nude Perry The 0UrUdqnw TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Biker 315 Women’s PLDM Black by Black Palladium Btd Dovey Boots SF7wqR47x,//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');

Puppies Closed Hush Pumps Castana Women’s Toe Cognac qdPx8OAPw

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Print Women's Mini Floral Cross Sleeve 3 4 Dress Flare Jaycargogo White Criss 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);

   }

}

Aerosoles Pink Multi Class Spin Flat Women's Ballet qqvT18

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
3 Criss Sleeve Floral Dress White Mini 4 Print Women's Flare Jaycargogo Cross
Adults' Unisex Converse Season Taylor Ox Burgundy Trainers Chuck All Star 5ddxrq