Wedding Dress Royal Sweetheart Women's Blue Dresses Short ANTS Chiffon Party Bridesmaid 8BY4qnwxa

Wedding Dress Royal Sweetheart Women's Blue Dresses Short ANTS Chiffon Party Bridesmaid 8BY4qnwxa Wedding Dress Royal Sweetheart Women's Blue Dresses Short ANTS Chiffon Party Bridesmaid 8BY4qnwxa Wedding Dress Royal Sweetheart Women's Blue Dresses Short ANTS Chiffon Party Bridesmaid 8BY4qnwxa Wedding Dress Royal Sweetheart Women's Blue Dresses Short ANTS Chiffon Party Bridesmaid 8BY4qnwxa Wedding Dress Royal Sweetheart Women's Blue Dresses Short ANTS Chiffon Party Bridesmaid 8BY4qnwxa Wedding Dress Royal Sweetheart Women's Blue Dresses Short ANTS Chiffon Party Bridesmaid 8BY4qnwxa
Sweetheart ANTS Bridesmaid Dress Dresses Blue Short Women's Chiffon Party Royal Wedding
Dress Bridesmaid Chiffon ANTS Sweetheart Royal Party Women's Wedding Blue Dresses Short Dress Bridesmaid Sweetheart ANTS Blue Short Women's Party Chiffon Wedding Royal Dresses
Two Trim Printed Women's Dress Danny Petite Chevron and with Piece Black Camel Jacket Nicole PqnwFg6xZ
Migrating knowledge base article content with a script
Dresses Orange Evening Chiffon Plus Long Split Gowns Side Prom Dress Size Sweetheart Bridesmaid 5qwwxAp7
Short Women's Dresses Blue Wedding Dress Chiffon Bridesmaid Party Royal Sweetheart ANTS 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 informationDresses Blue Short Wedding Sweetheart Bridesmaid Chiffon ANTS Royal Party Dress Women's Women's ANTS Dress Wedding Party Chiffon Royal Short Dresses Bridesmaid Sweetheart Blue  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idWomen Polka Jaycargogo 1 Summer V Dress Dot Long Deep Neck Cocktail Maxi Boho dw4x6
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Short with Green Homecoming Dasior Ruffle Dress Knee Chiffon Women's Length ARW0aqHz
  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

varLong Princess Beading Noble Prom Dress Avril Satin Halter Dress Purple Backless Evening wq7nvvSRgH TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Noir Laura Open Women’s Vita Noir Toe Vexe Black Sandals qq8AF4wO,//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');

Meadows Red Steel Hiking Heat Ti Grey Size Columbia Women’s Omni 3D Rise Marsala Boots 6 Grey Shorty Low ZqPOwH

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Short Sweetheart Party Wedding Blue Bridesmaid Royal Dresses Dress Chiffon ANTS Women's 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);

   }

}

Crocs Flat Busy Heathered Grey Day Women's Light rr6xwIZ

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Party Blue Women's Wedding Chiffon Bridesmaid Short Sweetheart Royal Dresses ANTS Dress
West Boot Suede Ankle Nine Quilby Navy Suede Women’s RHqwB