CreateUniqueId()

Creates a Unique Identifier. Only unique for this instance, but shorter than an UUId.

CreateUniqueId( type=string );

Returns: String

Argument Description Default
type
string, optional

If the string "counter" is passed then it's only unique for this instance in this lifecycle, otherwise the returned value will be a 22 character UUID, encoded as a URL-safe Base64.

Examples

dump(CreateUniqueId());

See also