Name
global.KBCatTablesSNC
Description
Provides list of available knowledge category parent tables. Currently restricted to kb_category and kb_knowledge_base . Customers should not change this class directly This class is never called directly.
Script
var KBCatTablesSNC = Class.create();
KBCatTablesSNC.prototype = {
initialize: function() {
},
process: function() {
var result = [];
var dict = new GlideRecord("sys_dictionary");
dict.addNullQuery("element");
var gc = dict.addQuery("name", "kb_category");
gc.addOrCondition("name", "kb_knowledge_base");
dict.orderBy("name");
dict.query();
while (dict.next()) {
result.push("" + dict.name);
}
return result;
}
}
Sys ID
8c03647bb712230026778d78ee11a947