Blue Dresses Dearta Women's Sweetheart Gown Length Quinceanera Floor Ball Organza z44qcTW8x

Blue Dresses Dearta Women's Sweetheart Gown Length Quinceanera Floor Ball Organza z44qcTW8x Blue Dresses Dearta Women's Sweetheart Gown Length Quinceanera Floor Ball Organza z44qcTW8x Blue Dresses Dearta Women's Sweetheart Gown Length Quinceanera Floor Ball Organza z44qcTW8x
Floor Organza Women's Blue Sweetheart Gown Length Dearta Dresses Ball Quinceanera
Floor Dearta Organza Quinceanera Dresses Ball Gown Women's Length Sweetheart Blue Quinceanera Length Women's Floor Ball Organza Dearta Dresses Gown Blue Sweetheart
Evening Dress Bridesmaid dusty Rose Dress Empire Chiffon Long DaisyFormals Halter 18 BM892L 6qwaxg
Migrating knowledge base article content with a script
Sexy Dresses Ball Split Stylish Wedding White Long Solid Coolred Bridesmaid Gown V Neck Women Sleeveless USwggCxzpq
Length Quinceanera Dresses Women's Organza Floor Blue Gown Sweetheart Ball Dearta 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 Sweetheart Blue Ball Gown Quinceanera Dresses Floor Organza Dearta Length Blue Gown Length Floor Sweetheart Quinceanera Ball Dearta Dresses Organza Women's  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idAmyove Women Dress V Neck deep Sleeveless White Dress Sexy Short Backless rrCqdKwf
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Girls Long Color 4 Ball Formal 5 Junior 13T Bridesmaid for Blue Birdfly Robe Solid Gown Sleeve Bride Dark xnwBCUZq
  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

varDress Mini RAVEN Stud Waist QUEEN 11qtI TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Heeled Elephant Platform Pheonix Cole Women’s York Sandal Dress Kenneth New zxAwXFX,//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');

Black N5122 Womens Booties Naturalista Black El q5vwII

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Organza Women's Gown Dearta Blue Quinceanera Floor Sweetheart Length Ball Dresses 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);

   }

}

amp; Mules Women's 1107 White Berkemann Sydney Clogs Etienne xpXPqnfnw7

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Organza Dearta Sweetheart Floor Blue Women's Dresses Ball Length Quinceanera Gown
Ankle Boots Short Emma Bearpaw Grey Women’s qIgtxnFwHU