Scoped GlideRecord - setNewGuidValue(String guid)

Sets sys_id value for the current record.

Table 1. Parameters
Name Type Description
guid String The GUID to be assigned to the current record.
Table 2. Returns
Type Description
void
ar gr = new GlideRecord('incident');
gr.short_description='The third floor printer is broken';
gr.setNewGuidValue('eb4636ca6f6d31005be8883e6b3ee333');
gr.insert();
gs.info(gr.sys_id);

Output: