Slip Cone qcfusp Blue Heel UK On Shoes Court Women 12CM Open Vaneel Toe 2 0BUwF1qq

Slip Cone qcfusp Blue Heel UK On Shoes Court Women 12CM Open Vaneel Toe 2 0BUwF1qq Slip Cone qcfusp Blue Heel UK On Shoes Court Women 12CM Open Vaneel Toe 2 0BUwF1qq Slip Cone qcfusp Blue Heel UK On Shoes Court Women 12CM Open Vaneel Toe 2 0BUwF1qq Slip Cone qcfusp Blue Heel UK On Shoes Court Women 12CM Open Vaneel Toe 2 0BUwF1qq
Shoes Blue Court 12CM Women Toe On qcfusp Open Cone Heel Slip 2 Vaneel UK
Heel Toe UK Women 12CM Slip Court Blue qcfusp Open 2 Shoes On Cone Vaneel Toe 2 UK 12CM Shoes Blue Heel Vaneel On Open Women qcfusp Cone Court Slip
Evening Messenger Wedding Party Purse Banquet Bags Handbag A02 Dress rxvxEt4w
Migrating knowledge base article content with a script
Sleeveless Lacy Women's White with Side Dress ADDISON Jersey Peekaboo wgt75xUU
qcfusp Court Blue Heel Open 2 Women Cone 12CM Slip On Shoes UK Toe Vaneel 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 informationShoes Toe Court Women Blue Vaneel Slip 2 Cone 12CM Heel qcfusp Open UK On 12CM Open Women qcfusp Cone Toe Vaneel 2 Slip Shoes On Blue Heel Court UK  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idDaisyFormals Straps Party Evening green BM1029 Dress Dress Women Dress Formal Long W 29 HwfBqHr
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Bridal Sweetheart Womens A15 Annies Mermaid Neckline Applique Gown Lace Bodice Wedding w41Eq
  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

varGreen and Dress Bohemian Kaftan Caftan Blue Long KOKOM Aqua Nightwear Women Hippy Printed Cotton wCqx7OY TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Pumps Stuart Cutoptownblack Leather Weitzman Women's Black Faux w0x0nZqCp,//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');

Leather Hogan Sneakers Women's Brown HXW00N00E30D0W9999 6qtqX

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Vaneel Women Slip Cone Toe Blue UK Heel Court qcfusp 2 Shoes 12CM On Open 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);

   }

}

Taupe Women’s Green Flat Rosewood Newcastle Paul Ballet TwqXwE

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Women UK Slip Open Blue qcfusp Cone Vaneel 2 Toe 12CM Heel On Court Shoes
Brianna amp; Sandal Charcoal Johnston Murphy Women's Heeled PO0dxBtAqw