Bulk Retire KB Articles

AthulK
Tera Contributor

I need help on a ui action code for bulk retire of KB articles from list view and its associated approval workflows to be cancelled. Tried with g_list, it did fetch the data but not passing to server side from client side.

 

var selectedArticles = g_list.getChecked();
 ga.addParam('sysparm_name', 'retire'); 
ga.addParam('sysparm_articles', selectedArticles.join(','));
 
Script include
 
retire: function() {
        var articles = this.getParameter('sysparm_articles'); 
gs.info('Received sysparm_articles: ' + articles);
 
Kindly help me on the code
0 REPLIES 0