GUID
→ stringBare-name Core form of Platform.Function.GUID — generates a lowercase UUID v4 string. Requires Platform.Load.
Runtime verified
Syntax
GUID()
0 arguments
Description
GUID() is the bare-name Core-library form of Platform.Function.GUID(). It requires Platform.Load("core", "1.1.5") before use — the bare name is undefined until the load has run.
It behaves identically to Platform.Function.GUID(): it generates a new globally unique identifier as a lowercase canonical UUID v4 string of 36 characters (e.g. "f038aa14-708f-4392-a329-7dfa46abaf4b"). Use the qualified Platform.Function.GUID() form when you do not already have a Platform.Load call in scope.
Return value
Returns a string — a lowercase canonical UUID v4 (36 characters, hyphen-separated).
Example
Platform.Load("core", "1.1.5");
var id = GUID(); // e.g. "f038aa14-708f-4392-a329-7dfa46abaf4b"
Write(id);