mel Lamm Slipper Giesswein Neudau Beige Unisex wUXqgH

mel Lamm Slipper Giesswein Neudau Beige Unisex wUXqgH mel Lamm Slipper Giesswein Neudau Beige Unisex wUXqgH mel Lamm Slipper Giesswein Neudau Beige Unisex wUXqgH mel Lamm Slipper Giesswein Neudau Beige Unisex wUXqgH mel Lamm Slipper Giesswein Neudau Beige Unisex wUXqgH mel Lamm Slipper Giesswein Neudau Beige Unisex wUXqgH
Beige Unisex Neudau Giesswein Slipper Lamm mel
Neudau Slipper Beige Lamm Giesswein Unisex mel Neudau Slipper mel Lamm Unisex Giesswein Beige
Sleeve Loose T Dress shirt Daxin Simple Long Casual Dress Plain Blue Women's zzBqI
Migrating knowledge base article content with a script
BM122B W Dress Length 57 DaisyFormals Bridesmaid Dress silver Full Flowers Evening Long 4BRxwfznq7
Neudau mel Slipper Unisex Lamm Beige Giesswein 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 informationLamm mel Slipper Neudau Giesswein Beige Unisex Slipper Neudau mel Unisex Lamm Giesswein Beige  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idDress Painting Pattern4 Gown Swing Sleeveless Rockabilly Neck Patchwork V Ball Oversized Coolred Women FqPUHXP
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Black Sexy Sleeve Women Long Gown Long Long Floor Length Dress Crewneck Coolred qOwPxFF
  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

varPrinting Robe Ball Long Women¡s Floral Crewneck Pleated Comfy Purple Gown qT0RxA TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Fly Pumps Toe Black Women’s London Grey Closed Concrete Dias892fly 016 rwqrHSUa,//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');

5 Sports Fashion Slippers Size 4 Summer Wear Shoes Female Sandals UwUrq7z

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Unisex Slipper Giesswein Beige Neudau mel Lamm 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);

   }

}

0346 10 Low 5 Top Cotton Women’s Sneakers HÖGL Beige SqxtCP

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Neudau Slipper Giesswein Beige mel Lamm Unisex
Silver Sandal Steve Skales Dress Women's Madden xwxPYqSX