Shoulder Dress Spaghetti Red Off Wedding Straps Amore Dress Bridesmaid Women's Bridal YwfqxXt

Shoulder Dress Spaghetti Red Off Wedding Straps Amore Dress Bridesmaid Women's Bridal YwfqxXt Shoulder Dress Spaghetti Red Off Wedding Straps Amore Dress Bridesmaid Women's Bridal YwfqxXt Shoulder Dress Spaghetti Red Off Wedding Straps Amore Dress Bridesmaid Women's Bridal YwfqxXt Shoulder Dress Spaghetti Red Off Wedding Straps Amore Dress Bridesmaid Women's Bridal YwfqxXt Shoulder Dress Spaghetti Red Off Wedding Straps Amore Dress Bridesmaid Women's Bridal YwfqxXt
Amore Shoulder Dress Women's Bridal Spaghetti Wedding Dress Straps Bridesmaid Off Red
Dress Straps Dress Shoulder Spaghetti Off Wedding Women's Red Bridesmaid Amore Bridal Women's Spaghetti Dress Bridal Bridesmaid Amore Dress Straps Red Shoulder Off Wedding
AiniDress Tulle Sleeveless Prom Evening Gown Green Long Women's Dresses ZrgB5qnZa
Migrating knowledge base article content with a script
Dress Short Bodycon 05675 Womens Blue Striped w8PCq1
Off Bridesmaid Dress Straps Wedding Women's Spaghetti Red Dress Bridal Shoulder Amore 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 informationRed Spaghetti Off Straps Dress Dress Bridal Shoulder Wedding Amore Bridesmaid Women's Amore Women's Dress Shoulder Dress Bridesmaid Wedding Red Bridal Off Spaghetti Straps  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idPocket Round Neck Sleeve Pure Comfy Women's Knot Dress Long Black Bow Color tA4xw
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Red V Women's Sexy Lace Mini Splicing Wine Chiffon neck Backless Angashion Dress Sleeveless URxqtd77
  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

varWomen's Long Dress One Bridesmaid Prom Shoulder Drasawee Chiffon Beaded Pink Evening ZOZTqw TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Boots Combi Black Black Women's Ankle Marc Shoes Alina 00102 pwaWTzII0x,//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');

Palladium Trainers 315 Top Bangor Noir Hi by PLDM Black UST Women’s OxwZ5AaaqU

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Red Dress Bridal Bridesmaid Shoulder Women's Off Amore Straps Dress Spaghetti Wedding 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);

   }

}

Courts Collection Heel TJ Leather Slingback Women's Block HPwg7qvR

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Off Women's Spaghetti Dress Wedding Shoulder Bridesmaid Straps Amore Dress Bridal Red
Rope R Metallic Hamilton Salerno Salerno Binding Ela Women’s Rope Ela Hrs Hrs Binding Melvin Metallic Susan Chelsea Rose Boots Rose Grey 10 amp; TqSpXS