Scoped GlideRecord - newRecord()

Creates a new GlideRecord record, sets the default values for the fields, and assigns a unique ID to the record.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
void
var gr = new GlideRecord("x_app_table"); 
gr.newRecord(); 
gs.info(gr.isNewRecord());

Output: true