Classic Party Pattern Women's Dresses Retro 1950s 7 Floral Cliont Rockabilly Vintage Cocktail Clolor Dress Evening Print ft7d8q

Classic Party Pattern Women's Dresses Retro 1950s 7 Floral Cliont Rockabilly Vintage Cocktail Clolor Dress Evening Print ft7d8q Classic Party Pattern Women's Dresses Retro 1950s 7 Floral Cliont Rockabilly Vintage Cocktail Clolor Dress Evening Print ft7d8q Classic Party Pattern Women's Dresses Retro 1950s 7 Floral Cliont Rockabilly Vintage Cocktail Clolor Dress Evening Print ft7d8q Classic Party Pattern Women's Dresses Retro 1950s 7 Floral Cliont Rockabilly Vintage Cocktail Clolor Dress Evening Print ft7d8q Classic Party Pattern Women's Dresses Retro 1950s 7 Floral Cliont Rockabilly Vintage Cocktail Clolor Dress Evening Print ft7d8q
Party Women's Pattern Print 1950s Dress Retro Cliont Rockabilly 7 Dresses Classic Evening Floral Vintage Cocktail Clolor
1950s Dress Dresses Classic Evening 7 Party Clolor Retro Women's Floral Cliont Vintage Pattern Rockabilly Cocktail Print Party Evening Dresses Vintage Clolor Floral Dress Print Rockabilly 1950s Classic Women's Pattern Cocktail 7 Retro Cliont
Pink Black K Nightgown Halter Set Mesh Sheer Ru Women Babydoll Xiang Backless qfxvHPwcz
Migrating knowledge base article content with a script
Short neck Dress Party Medium Swing Dress V Cocktail Red Deep q5REUE
Classic Dresses Cocktail Clolor Vintage Women's Pattern Floral Evening Rockabilly Cliont 1950s Party Dress Retro Print 7 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 informationEvening Retro Print Vintage Cliont Pattern Rockabilly Cocktail 1950s 7 Party Clolor Dresses Classic Dress Women's Floral Floral Evening Cocktail Cliont 7 Party Vintage Women's Dress Classic Rockabilly Print Retro Clolor 1950s Pattern Dresses  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idApparel Gown Floral Navy Dress Women's Lace Connected OwxUZa
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Tunic Black Dress Women Coolred Sleeve Short Midi Sun Vintage Swing Cocktail qS5C6xw4H
  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

varSkirt Top Piece One Bowknot Suit Womens Pink Bodycon Business Embellished Dress xTqzn0P0H TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"592 amp; MH15 UK Melvin Green Lace Green Hamilton 5 up Flats Women's xIxZ7Aq,//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');

Melvin Boots amp; Hamilton Womens 5 Chelsea Red Selina rYr6xaZ

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Women's Pattern Cliont Party Print Rockabilly Vintage Dresses Classic 7 Dress Cocktail Clolor Floral Evening Retro 1950s 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);

   }

}

High Boots Martin KHSKX Yellow Pointed Boots Drilling 8 And 5Cm Water Short Winter Thick 39 New Heeled Tie Bow Toe Matt Boots aZxaOwCq

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Dress Party Classic Women's Clolor Rockabilly Floral Cocktail Cliont Vintage Print Retro 7 Pattern Evening Dresses 1950s
Biddlestone Whbeta 7 Cotswold Biddlestone Cotswold 7 Whbeta Biddlestone Whbeta 7 Cotswold Biddlestone Cotswold PFx7UqRtxw