Scoped GlideRecord - initialize()

Creates an empty record suitable for population before an insert.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
void
var gr = new GlideRecord('incident');
gr.initialize(); 
gr.name='New Incident'; 
gr.description='Incident description'; 
gr.insert();

Output: