Name

global.CMDBDynamicIREFeatureSetTableField

Description

No description available

Script

var CMDBDynamicIREFeatureSetTableField = Class.create();
CMDBDynamicIREFeatureSetTableField.prototype = {

  FEATURE: 'feature',

  initialize: function() {},

  process: function(tableName) {

      var fields = [];
      var td = GlideTableDescriptor.get(tableName);

      if (td != null)
          for (var el in td.getAllElementDescriptors())
              if (el.getColumnName().startsWith(this.FEATURE))
                  fields.push(el.getColumnName());

      return fields;
  },

  type: 'CMDBDynamicIREFeatureSetTableField'
};

Sys ID

8a0a416cc3f1201099b86a764440dde0

Offical Documentation

Official Docs: