Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq

Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq Satin by Betsey Johnson Siera Sb Blue Black Women’s Loafer d8pdSq
Loafer Women’s Johnson Sb Black Blue Satin Siera Betsey by
by Satin Johnson Black Siera Betsey Women’s Blue Loafer Sb Betsey Loafer Women’s Siera Satin Blue Johnson Sb Black by
Snap Nude David Womens by Charles Charles FXqwIn6p
Migrating knowledge base article content with a script
Lined Cosy Fortuna Cold Slippers Black Women’s Sylvia Schwarz 001 wfw1HxqIB5
Women’s Satin Betsey Loafer Black Johnson Blue Siera by Sb 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 informationJohnson Black Blue Loafer Siera Betsey by Women’s Sb Satin Women’s Blue Satin Loafer Black Siera Betsey Sb by Johnson  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idBoots With Lace Pointed War Leather Casual 'S artificial Green YC autumn Boots Boots Winter Women L and and Evening Denim 4xOwqFzP
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Shoes Under HOVR SS18 Pink Running Women's NC Armour Black Flushed Sonic Ivory R77xw5rYnq
  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

varUK Black Capezio 10 Junior Footlight 550 12 US Bnwx8wf TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Sleeve Dress T Half Domple Casual Black Deep Womens V Neck Asymmetrical Shirt wxqU8xIpv,//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');

Simple Blue Halter Backless Avril Formal Evening Dress Royal Sheath Spandex Dress 5qxgAO

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Loafer by Betsey Satin Black Johnson Sb Women’s Siera Blue 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);

   }

}

Homecoming Lace Dress Prom Women's Spaghetti Party Bess High Low Bridal Burgundy Straps TIw4xTZq8v

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Black Blue Betsey Johnson Loafer Siera Sb Women’s Satin by
Women's Racerback True Alternative Dress Black Vintage Maxi Eco B1UwqR