Skip to content

NewId

Creates a new UUID/GUID-formatted identifier.

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().

Example

1
2
var correlationId = NewId();
console.info("Starting operation", correlationId);