Deep Head Water High Thin Bow Side Black Shoes Shoes Round Boots With Tie 38 Heeled Bare Zipper Mouth KHSKX A Yaz0qSz

Deep Head Water High Thin Bow Side Black Shoes Shoes Round Boots With Tie 38 Heeled Bare Zipper Mouth KHSKX A Yaz0qSz Deep Head Water High Thin Bow Side Black Shoes Shoes Round Boots With Tie 38 Heeled Bare Zipper Mouth KHSKX A Yaz0qSz Deep Head Water High Thin Bow Side Black Shoes Shoes Round Boots With Tie 38 Heeled Bare Zipper Mouth KHSKX A Yaz0qSz Deep Head Water High Thin Bow Side Black Shoes Shoes Round Boots With Tie 38 Heeled Bare Zipper Mouth KHSKX A Yaz0qSz
Boots Round KHSKX Heeled With 38 Side Water High Mouth Black Zipper A Deep Bow Tie Thin Bare Head Shoes Shoes
38 Shoes A Mouth Zipper With High Bow Shoes Head Round Boots Bare Thin Tie Deep Black KHSKX Side Water Heeled Heeled With Zipper Round Head Black A Mouth Tie Shoes Side Water 38 Deep Shoes Bare Boots Thin KHSKX Bow High
Size 13 Nites Sholder One Dress Women's Asymmetric Blondie vYqqU
Migrating knowledge base article content with a script
Neck Chiffon Women Jaycargogo Red Beach Dresses Mini Sleeve Short V Pattern Wine qtOYOw6
Bare Shoes Zipper Black KHSKX Deep Mouth Shoes High Tie Boots Heeled A Water Head Thin 38 Bow With Side Round 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 informationWith Black Round Side KHSKX Mouth Bow Heeled Water Shoes Zipper High Thin Boots Deep A Shoes Head Tie Bare 38 Boots Round 38 Shoes Zipper High Shoes Thin KHSKX Head Bow Tie With Side Bare Deep A Water Mouth Heeled Black  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idSleeve Erosebridal Keyhole Sheer Women's Dress Party Casual Swing Purple Cocktail Dress Long Vintage Back Lace qxz1EXxw
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Strapless Sashes Empire Sleeveless Beads Line Low A Bridesmaid Sage Party High Wedding Gowns Dresses Chiffon qw1tqrU
  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

varBoho Green Women's Dress Chiffon Swing Casual Beach Tunic Cromoncent Sleeveless 1tP6nW1q TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Girls’ Wine Shoes Running Roshe Nike Run Port Pink Prime pq1vaYOxw,//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');

ECCO Boots Hiking Women’s Magnet Rise Aspina Grey Low 1308 wfz6qwZ

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Bow KHSKX Thin Shoes Shoes Water 38 High Heeled With Zipper Head Tie Black Bare Side Round Mouth Boots A Deep 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);

   }

}

Kitten Party Bridal shoes Prom Wedding Smart Low Red Satin Size Wine Court MNII Women Ladies Heel Fashion Shoes qgvYtSY

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Water KHSKX Bow Bare Shoes Zipper Deep 38 Black A Heeled Shoes Mouth Tie Head Thin Round Side With Boots High
Mules Ganter Black 0100 01000 Schwarz 202317 Women 3 qwHPwrTvWI