Ext.TableId( Variant v [, nameType] )

Description

Returns the numeric ID of the specified table.

Argument

Variant v [, nameType]

Use this argument to specify a table.

Note that "nameType" can be also be "project" or "workflow", which will look for the project or workflow by ID, Internal Name, or UUID, and return the related table id. This is useful when you are submitting to a project, because this value can be passed to CreateProjectBasedRecord to create an item for the table that the project is related to.

Return Values

Returns the numeric ID of the specified table. If the table does not exist, returns zero.

Examples:

var myTableId = Ext.TableId(  "APP_WORKFLOW", "workflow"  ) );
var myTableId = Ext.TableId(  8, "workflow" ) );
var myTableId = Ext.TableId( "f4c6fa0d-5484-4dd3-b443-5363c4573a18", "project" ));

Related Topics

Extension Functions