Name

sn_oe_sfs.CollabChatRecordTableChoices

Description

Returns list of tables we allow to be associated with a collab chat. Currently, this is any table that extends task

Script

var CollabChatRecordTableChoices = Class.create();
CollabChatRecordTableChoices.prototype = {
  initialize: function() {
  },
  process: function() {
  	var tableUtils = new TableUtils("task");
  	var tables = tableUtils.getAllExtensions();
  	var validTables = [];
  	var size = tables.size();
  	for(var i = 0; i < size; i++) {
  		var table = tables.get(i);
  		if (!table)
  			continue;
  		validTables.push(table + '');
  	}
  	return validTables;
  },
  type: 'CollabChatRecordTableChoices'
};

Sys ID

4aab2d21c3c13010fe394f877840dd66

Offical Documentation

Official Docs: