Name

global.ExistingTable

Description

Check if some table Existing.

Script

var ExistingTable = Class.create();
ExistingTable.prototype = Object.extendsObject(AbstractAjaxProcessor, {
  isExistingTable: function() {
  	var isValid =false;
  	var tableName =this.getParameter('sysparm_table_name');
  	var appGr = new GlideRecord(tableName);
  	if(appGr.isValid()){
  		isValid =true;
  	}
  	return isValid ;
  	
  	
  },
  
  type: 'ExistingTable'
});

Sys ID

caf8854167da0300684e82ed2685ef40

Offical Documentation

Official Docs: