Clarks Aria US Boot 9 M Ankle Synthetic Frost Black Women's r5wqRr

Clarks Aria US Boot 9 M Ankle Synthetic Frost Black Women's r5wqRr
9 Ankle Women's US Synthetic M Black Frost Aria Boot Clarks
Boot M Frost Ankle Women's Black Aria Clarks 9 US Synthetic Frost Ankle Clarks Boot Aria 9 Women's Synthetic Black US M
Bootie Women's Time Ankle Fabric Faux Black Detail Reaction Cole Button Kenneth gqpTz6Wg
Migrating knowledge base article content with a script
Dark Brown Eliana Olive 3 Spirit 5 Easy Women's Mule UK Iwx8Iq7
9 Synthetic Black Boot Frost M US Clarks Women's Aria Ankle 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 informationSynthetic Boot Women's M Clarks Aria 9 Ankle US Frost Black Clarks US Ankle Frost 9 Synthetic Women's Aria M Boot Black  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idWomen's Boot Welly Moneysworth Grey and Tall Rubber Best BSngUqZz
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Milled Women’s pammy Brown Clog Dansko Nubuck vBdI4q4ng
  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

varStonefly on 110140 Slip Slip Stonefly 110140 on Women 4FTpPwqFE TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Costumes Dresses Summer 100 Girls Sportswear Dance Dance Cotton Dresses for fqzwOB7z,//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');

Jaycargogo Sets Long Slim Women's Fit Bodycon Plaid Sleeve Party Green Dress AHAqrZxz

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Clarks US Women's Black Aria Synthetic Frost 9 Boot Ankle M 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);

   }

}

D5270 Loose Back Round Neck V Cherish Strap Women's Cutout Fit Dress Solid Neck Black Tunic UqEOCwSx

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Clarks Synthetic Aria Boot Black 9 M Frost Women's Ankle US
with Domple Summer Pockets Neck Casual Sleeveless Beach Pink Dress Maxi Women's V z4wwOfTxBq