Scoped GlideElement - setValue(Object value)

Sets the value of a field.

Table 1. Parameters
Name Type Description
value Object Object value to set the field to.
Table 2. Returns
Type Description
void
var glideRecord = new GlideRecord('incident');
glideRecord.query('priority','1');
glideRecord.next();
glideRecord.short_description.setValue('Network failure');
gs.info(glideRecord.short_description);

Output: