Name

global.NotificationTriggerTableChoices

Description

Determines the set of tables to choose from when defining a Notification Trigger. Configurable via the NotificationTriggerTableChoices extension point. Defaults to all tables.

Script

var NotificationTriggerTableChoices = Class.create();
NotificationTriggerTableChoices.prototype = {
  initialize: function(view) {
  	this.view = view;
  },
  
  process: function(){
  	try {
  		var eps = new GlideScriptedExtensionPoint().getExtensions('NotificationTriggerTableChoices');

  		for(var i = 0; i < eps.length; i++){
  			eps[i].initialize(this.view);
  			if(eps[i].handles()){
  				return eps[i].process();
  			}
  		}
  	}
  	catch(e){
  		gs.error("Error running NotificationTriggerTableChoices extension point", e);
  	}
  	
  	var tl = new GlideTableChoiceList();
  	tl.setSelectedOnly(false);
  	tl.setSelectedField(null);
  	tl.setSelected(null);
  	tl.setForceSelected(false);
  	tl.setCurrentTableName(null);

  	return tl;
  },

  type: 'NotificationTriggerTableChoices'
};

Sys ID

23b3c681ff012300294153bd6338f137

Offical Documentation

Official Docs: