Clientside GlideRecord - insert(Function responseFunction)

Inserts a new record using the field values that have been set for the current record.

Table 1. Parameters
Name Type Description
responseFunction Function The response function.
Table 2. Returns
Type Description
String The sys_id of the inserted record, or null if the record was not inserted.
var gr = new GlideRecord('to_do');
gr.initialize(); = 'first to do item'; 
gr.description = 'learn about GlideRecord';