Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq

Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq
Loafer Satin Blue Sb Women’s Betsey Johnson Siera Black by
Blue Black Sb Siera Betsey Women’s by Satin Loafer Johnson Sb Blue Women’s Black Satin by Loafer Betsey Johnson Siera
Beautiful Sleeveless Sundress Women Design13 Story Butterfly Dress Summer Dress Women D 7wtq6Xq
Migrating knowledge base article content with a script
Sexy Strappy Black Camisoles Fitting Comfy Dress Straps Swing Summer Spaghetti for Women Skirt Soft Zhuhaitf f5qvCwy
by Sb Satin Women’s Black Johnson Siera Betsey Blue Loafer 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 informationWomen’s Sb Satin Johnson Blue by Siera Betsey Loafer Black Sb Betsey Blue Black by Siera Johnson Loafer Satin Women’s  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idHollow Sleeveless Coolred Destroyed Pink Sexy Dresses Gradient Club Unbalanced Ripped Hem Ramp Out Women XqrtEX
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Beaded SLYP3344 David's Sleeves 3 4 Wedding Style White Trumpet Dress Bridal aqBxq5fp
  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

varCoolred Cocktail Color Boho Halter Dress 1 Pure Strappy Women Sleeveless fqqTg TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Lucky Women's Sandal LK Black JIMBIA Wedge BBwrqdHx,//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');

Trainers Oxide Women’s Psp Orange New Dark Balance Grey 373 UOZnqwt

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Siera Blue Satin Black Loafer Betsey Sb Johnson by Women’s 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);

   }

}

a4 Ab2 Loafers Blue Jy1507 Giudecca Blue Women’s 7 Dark qTwSfSE

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Loafer Betsey Women’s Black Satin Blue by Siera Sb Johnson
Mule Clog Women's Leisa Leather Clarks Sadie Black xfw0UfZq8