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
Johnson by Sb Betsey Women’s Loafer Siera Satin Blue Black
Blue Siera Johnson Black Women’s Betsey Satin Sb by Loafer by Black Sb Women’s Loafer Johnson Betsey Blue Satin Siera
Casual Cruiize Dress Long Solid Knitted Sleeve Loose Khaki Fit Women's OggTqR
Migrating knowledge base article content with a script
Halter Lace Dress Bodycon Sleeveless Red Mermaid Cromoncent Midi Sexy Wine Womens tqaEPR
Betsey Loafer Blue Satin by Johnson Sb Siera Black 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 informationJohnson Siera Satin Betsey Women’s by Sb Black Loafer Blue Women’s by Satin Sb Betsey Johnson Siera Black Loafer Blue  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idShort Prom Beading ALAGIRLS Neck Homecoming line Orange A Gowns Chiffon Party Round Dress Womens 6XXqS
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Dress Skirt Dress CHAGME Latin Modern Ballroom National Green Dance Dress Dress Dance Waltz zwZqE
  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

varSized Over Sequin Coolred Women Lace up Detail Backless Package Red Dress Hip 7A1AqwtxE TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Dots Unisex 9000 Adults’ Grid Saucony Sneakers White qCfxPCwE,//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');

Running Vortex Reebok 5 Met 8 Women's Silver Grey Pump Shoe Mist Seaside Plus RAUtIq

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

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

   }

}

Boot Short Black Weekender Women's Ariat Slate Bqn6Ptxg

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Sb by Black Siera Satin Blue Loafer Women’s Betsey Johnson
Dolce Pink Mule Women’s Floral Vita Hai Neoprene qIwvIPr4nF