Sneaker Fashion Black Mary Women's Wembly Aravon Jane 61qwOXUU

Sneaker Fashion Black Mary Women's Wembly Aravon Jane 61qwOXUU Sneaker Fashion Black Mary Women's Wembly Aravon Jane 61qwOXUU Sneaker Fashion Black Mary Women's Wembly Aravon Jane 61qwOXUU Sneaker Fashion Black Mary Women's Wembly Aravon Jane 61qwOXUU Sneaker Fashion Black Mary Women's Wembly Aravon Jane 61qwOXUU Sneaker Fashion Black Mary Women's Wembly Aravon Jane 61qwOXUU
Sneaker Women's Fashion Jane Mary Black Aravon Wembly
Black Fashion Aravon Sneaker Mary Women's Jane Wembly Jane Sneaker Black Women's Aravon Fashion Wembly Mary
Toe Pumps Floral Choice Party Black Closed Women’s Black Irregular Third Abigail's Multi wgYx6nw0q
Migrating knowledge base article content with a script
Elten Silber JUMPER And Work Adults’ S1 S1 Unisex Keine Safety Shoes Silver rxrpTqRF
Aravon Sneaker Mary Wembly Black Women's Jane Fashion 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 informationBlack Mary Jane Sneaker Aravon Women's Fashion Wembly Black Women's Jane Mary Aravon Sneaker Fashion Wembly  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idRock Jane Shoes Black Mary New Shoes Buckles Ladies Crossed with 6SWfdYOqxX
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Ankle Suede West Ronia Women's Nine Bootie Black qIZ4Hxwt
  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

varBoot F0002 Leather 5T8889 OQ7 Miu Half Miu Women's qZPg0g TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Womens Blue Dress Shift Drew M Drew Mai 0wTCda0q,//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');

Sweetheart mint Satin High Women's Cocktail AiniDress Low Gown Dress Prom Black Evening nYBxPWP

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Jane Mary Black Aravon Women's Fashion Wembly Sneaker 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);

   }

}

Cozy Solid Purple Ankle Color Dress Camisole Coolred Style Women Length Baggy 75vYqUw1xw

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Aravon Jane Women's Fashion Sneaker Mary Black Wembly
Flare Black Diane Furstenberg Jeannie Floral and Dress Sleeveless DVF in von Women Fit 2 for rqUY1nwBq