Scoped GlideRecord - isValidField(String columnName)

Determines if the specified field is defined in the current table.

Table 1. Parameters
Name Type Description
columnName String The name of the the field.
Table 2. Returns
Type Description
Boolean True if the field is defined for the current table.
var gr = new GlideRecord('incident'); 
gr.initialize(); 
gs.info(gr.isValidField("short_description"));

Output: