Skip to content

NewId

Creates a new UUID/GUID-formatted identifier.

myScript.NewId():string

Returns

A lowercase, hyphenated version-4 UUID string.

Remarks

Available in browser form scripts and server workflow scripts. It has the same contract as the global NewId() function; do not use a browser-generated value as a secret.

Example

1
var externalReference = Script.NewId();