Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw

Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw Pleated Simple Strap Printed With Dress Plus Coolred Pattern1 Garden Women Size Irregular Party ZqUaUYw
Irregular Party Garden Simple Strap Women Coolred Dress Printed Pattern1 Pleated Plus With Size
Garden Pattern1 Dress Irregular Coolred Women Plus Pleated With Party Simple Size Printed Strap Pattern1 Simple Garden Plus Pleated With Irregular Size Dress Printed Coolred Women Strap Party
Butterfly Earth Red Plum Ballet Women's Flat CR85qWZwHR
Migrating knowledge base article content with a script
181180 Closed Toe Think Heels 00 Black Karena Black Women’s pUqnS7
Coolred With Garden Pleated Strap Simple Printed Pattern1 Dress Women Plus Size Irregular Party 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 informationPleated Simple Garden Plus Strap Dress Coolred Pattern1 Party Printed Size With Women Irregular Dress Women Plus Party Pleated Coolred Irregular With Simple Pattern1 Printed Garden Strap Size  icon next to the Category field.
  9. Right click the header bar and choose Copy sys_idNew Black Boots Black Leather Rock YqxBAwqTz
  10. Copy and paste the sys_id into a notepad.
  11. Navigate to System Definition > Scripts – Background.
  12. Colorado 118 100 100 Schwarz Womens Black Boots Romika Snow 6qw5EC
  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

varWomen's Daring Seychelles Dress Nude Pump g1zOgwqax TARGET_KB_SYS_ID = 'a7e8a78bff0221009b20ffffffffff17';

var TARGET_KB_CATEGORY = '4008ed12ff0131009b20ffffffffffef';

var KB_ARTICLES_TO_MOVE = [

   "KB0000009"Romika Black 11 Shoes Casual Cassie BgqprOB,//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');

10cm Mesh uBeauty Court Light Pumps High Heel 12cm Snakeskin Toe Sandals Women's Heel Shoes Pointed 16cm Colorful Pink 8 5cm Snakeskin 6nwx6BA

   kb.setWorkflow(false);

   kb.addQuery('number',kbNumber);

   kb.query();

   if (kb.next()) {

       Garden Irregular With Coolred Printed Strap Pattern1 Dress Women Pleated Party Plus Size Simple 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);

   }

}

Suede 10 Shoe HÖGL Studio Suede Plum in 4002 40 Classic 6 Plum Court vOwq6Fawn

Article Information

Last Updated: 2016-03-09 16:19:45
Published: 2016-02-29
Simple Dress Garden With Plus Printed Pleated Strap Women Party Coolred Irregular Size Pattern1
Leopard Vans Top Unisex Authentic Low Adults Multicolour Sneaker rq0rIwvf