Scoped GlideElement - getRefRecord()

Gets a GlideRecord object for a given reference element.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
GlideRecord The GlideRecord object
var grINC = new GlideRecord('incident');
grINC.query('number','INC0010041');
if (grINC.next()) {
  // Get a GlideRecord object for the referenced sys_user_group record
  var grGroup =grINC.assignment_group.getRefRecord();
  gs.info( grGroup.getValue('name') );
}

Output: