AMPscript
Format
GUID
IsEmailAddress
IsPhoneNumber
Stringify
Write
Validate Your Server-Side JavaScript using WSProxy
Return a globally unique ID (GUID) as a string. The ID that the function returns is generated using random data. The variant type for the ID is DCE 1.1, ISO/IEC 11578:1996.
This function doesn’t accept any arguments.
This code example generates a GUID and saves it as a variable called myGUID.
1<script runat="server">
2 Platform.Load("Core","1");
3 var randomID = Platform.Function.GUID();
4</script>
5<p>GUID: <ctrl:var name="randomID"/></p>The output of the code example includes a randomly generated GUID.
1GUID: 31558c83-ff02-42c5-ab2d-a1455f9d6d4b