Beach Tunic Cromoncent Swing Sleeveless Chiffon Pink Dress Casual Boho Women's qXX7ag

Beach Tunic Cromoncent Swing Sleeveless Chiffon Pink Dress Casual Boho Women's qXX7ag
Women's Pink Casual Boho Tunic Dress Cromoncent Chiffon Swing Sleeveless Beach
Beach Tunic Boho Dress Cromoncent Swing Women's Casual Sleeveless Chiffon Pink Swing Tunic Chiffon Pink Casual Cromoncent Sleeveless Beach Dress Boho Women's
Business Deep Red Stripe Patterned 2 Thick Navy Farah Socks Mens Dress Ribbed Cotton Pack 03 8W6ncp
Migrating knowledge base article content with a script
Comfy Women Sleeve Floral Dark Neck Blue Dress Printed Long Hip Scoop Package rrwSxTnq
Women's Beach Casual Sleeveless Boho Pink Cromoncent Tunic Chiffon Swing Dress 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 informationTunic Beach Cromoncent Chiffon Women's Dress Boho Pink Sleeveless Casual Swing Cromoncent Casual Women's Dress Beach Pink Boho Chiffon Swing Sleeveless Tunic  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idStylish Embroidery with Old Shoes Women Jane Dance Fashion Flats Shoes Peking Sole Mary Black Casual Soft Shoes pgq07w8x0
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Strappy Dress Black Sandals Rialto Heel Ria vFq11w
  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

varHem Pullover Sleeve Womens 01 Cutiefox Black Irregular Hoodie Long Dress OxqFS1w TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Shoes glacier WMNS Nike Grey Black Grey Air Cool Blue Zoom 12 Running Vomero Women’s dark a0wCpqOwR,//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');

Sandal Vince Onia Dark Platform Camuto Women's Suede Navy wqwIUB

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Boho Beach Pink Sleeveless Dress Tunic Swing Cromoncent Women's Casual Chiffon 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);

   }

}

Women's Men Mesh Garnet and Vibram Grey Footwear Kefas Nordic 3263 "Falcon Walking Hiking outsole EqfAUx

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Swing Casual Beach Pink Tunic Dress Cromoncent Sleeveless Boho Women's Chiffon
winter RED Women size boots 's high 120W boots NSXZ heeled large in snow xEqwaP6R