GlideRecord - setNewGuidValue (String guid)

Generates a new GUID and sets it as the unique id for the current record, when inserting a new record.

Table 1. Parameters
Name Type Description
guid String A string value for the new GUID
Table 2. Returns
Type Description
void

Scoped equivalent

To use the setNewGuidValue() method in a scoped application, use the corresponding scoped method: Scoped GlideRecord - setNewGuidValue(String guid).