March 2017
Beginner
358 pages
9h 51m
English
With one argument, get() expects a sys_id:
var recordSysID = '46f09e75a9fe198100f4ffd8d366d17b'; var gr = new GlideRecord('incident'); gr.get(recordSysID); //do something with the record
With two arguments, get() expects that the first argument will be the field name, and the second will be a value to compare the field value to. The following code block will return one record - the first record that matches the specified query:
var gr = new GlideRecord('incident'); gr.get('number', 'INC0000025'); //do something with the record
Read now
Unlock full access