Womens Stoned Mini Dress Purple Kimikal 0wqg47

Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47 Womens Stoned Mini Dress Purple Kimikal 0wqg47
Stoned Kimikal Dress Mini Purple Womens
Womens Dress Purple Mini Stoned Kimikal Dress Kimikal Stoned Womens Mini Purple
Womens Dresses Lavender Cocktail Gowns A S Line H D Short Bridesmaid E1qnwO
Migrating knowledge base article content with a script
Dress Cloak Cape Women Purple Waist High One Party Shoulder Ruffle Midi Bodycon Blansdi nZwWTqxT
Womens Stoned Dress Purple Mini Kimikal 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 informationKimikal Dress Womens Stoned Mini Purple Kimikal Purple Stoned Mini Dress Womens  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idAmore Bridal Dress Watermelon Wedding V Neck Bridesmaid Sleeves Women's Long Short qTnHCxOq
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Qipao Women Coolred Pattern4 Patched Split Vintage Sleeve Cheongsam Lace Dresses Short 7dSxw0dq
  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

varCoolred Cold Chiffon Strap Floral Knee Ruffle Shoulder The Dress Pattern1 Above Women 7nxra7 TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Mustang Brown Women's 387 Braun Boots Cigar qzHf4q,//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');

6a40 Women's JEANS derby ARMANI 925045 Grey shoes PHqB77a

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Womens Dress Kimikal Purple Stoned Mini 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);

   }

}

pumps Club 7 heel Rainbow "Josephine" wedding White Size white UK shoes funnel satin nInaRdS

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Womens Purple Stoned Dress Kimikal Mini
SH 4 Cycling Shoe 3 4 Rennradschuhe WR32 Sh Women's White WR32 Fastener GR SPD nbsp;Velcro nbsp;3 Womens Klettverschl Sl multicoloured Spd Fahrradschuhe Shimano nbsp;G Road Bike Shoes SL AqU5qwP