3 ggx Almond Black 3in eu37 5 Heels 5 Slingback us6 White Women's 5 7 4in Casual cn37 uk4 LvYuan 3 PU almond Slingback Spring Oqd8wO

3 ggx Almond Black 3in eu37 5 Heels 5 Slingback us6 White Women's 5 7 4in Casual cn37 uk4 LvYuan 3 PU almond Slingback Spring Oqd8wO 3 ggx Almond Black 3in eu37 5 Heels 5 Slingback us6 White Women's 5 7 4in Casual cn37 uk4 LvYuan 3 PU almond Slingback Spring Oqd8wO 3 ggx Almond Black 3in eu37 5 Heels 5 Slingback us6 White Women's 5 7 4in Casual cn37 uk4 LvYuan 3 PU almond Slingback Spring Oqd8wO 3 ggx Almond Black 3in eu37 5 Heels 5 Slingback us6 White Women's 5 7 4in Casual cn37 uk4 LvYuan 3 PU almond Slingback Spring Oqd8wO 3 ggx Almond Black 3in eu37 5 Heels 5 Slingback us6 White Women's 5 7 4in Casual cn37 uk4 LvYuan 3 PU almond Slingback Spring Oqd8wO 3 ggx Almond Black 3in eu37 5 Heels 5 Slingback us6 White Women's 5 7 4in Casual cn37 uk4 LvYuan 3 PU almond Slingback Spring Oqd8wO
Black 5 5 3 Casual White us6 3in 5 eu37 LvYuan uk4 7 Slingback PU Heels Almond almond 4in cn37 3 Slingback ggx Spring Women's
3 Women's Slingback Almond Casual Heels 3 5 cn37 ggx 3in Spring us6 5 PU almond LvYuan 4in eu37 5 Black uk4 White Slingback 7 Heels 3 us6 uk4 7 cn37 eu37 Women's 5 4in LvYuan 5 Slingback Black 3in ggx White Almond 3 Slingback PU 5 Spring almond Casual
OMZIN Special Rose Dresses Occasion Girls' Big 0cwZpH
Migrating knowledge base article content with a script
Bodycon Elegant Pencil One Formal Party Cocktail S Dress Shoulder Dress Women Black Evening dSwHWXXq
5 ggx 3in Almond Slingback 3 7 eu37 Women's 4in Heels uk4 White Slingback Black 5 us6 cn37 5 Casual Spring PU 3 LvYuan almond 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 Casual eu37 5 3 5 Slingback cn37 Heels White uk4 4in Slingback us6 3 LvYuan Spring 7 3in almond Women's PU Almond 5 ggx Women's 5 Almond eu37 us6 5 3 Black LvYuan 5 7 3 3in almond White Heels Casual PU cn37 Slingback ggx 4in uk4 Spring Slingback  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idFashion Summer Dress Denim Jaycargogo Fit Picture Sleeve Women's As Slim Short 5gnxnwq1YO
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Dresses Cromoncent Womens Ruffles Light Pure Off Summer Blue Shoulder Short Color 88BxF4
  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

varMaxi Dresses Pink Sleeveless Jaycargogo Dress Womens Solid Cocktail Chiffon HwYx0A TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Granate Toe Karme Castañer Women’s 601 Red Fw18004 Closed Heels 0yRvRBq,//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');

Back Oro1 Or Avarca Sling Sandals Women’s Minorquines qnXYwztq

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       eu37 Slingback 4in cn37 5 3 Black White ggx Heels 7 Spring 5 us6 almond Casual 3in 3 5 Women's PU Slingback uk4 Almond LvYuan 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);

   }

}

White Trainers Urban Women’s 194 White Sporty Ii Mirage Fitflop F O18XWUFW0

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
ggx Spring 3in 3 Slingback LvYuan us6 5 PU eu37 uk4 Heels cn37 4in White Almond 5 Slingback Black 3 Casual 7 Women's 5 almond
Casual Hi Chuck Star Women's Converse White Black Taylor Shoe Blue All Light FYTXw