Skip to content

NewId

Creates a new UUID/GUID-formatted identifier.

1
myglobal.NewId():string

Returns

A lowercase, hyphenated version-4 UUID string, for example "6f1c2b7e-4f5a-4b1d-9f2a-1e3d5c7b9a20".

Remarks

Available in browser form scripts and server workflow scripts. Use it for identifiers, not as an authorization secret or cryptographic token: the browser implementation relies on Math.random().

Examples

Generate an identifier for a new row

1
2
3
$Xml.AppendChild('Lines/Line', function (line) {
    line.SetValue('Id', NewId());
});

Correlate log entries of one operation

1
2
var correlationId = NewId();
console.info('Starting export ' + correlationId);