GlideRecord - isValid()

Determines if the table exists.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the table is valid or if the record was successfully fetched, false otherwise.

Scoped equivalent

To use the isValid() method in a scoped application, use the corresponding scoped method:Scoped GlideRecord - isValid().

var testTable = new GlideRecord('incident');
gs.print(testTable.isValid());