Lucee Function Reference

createuniqueid()

Creates a Unique Identifier.

Example

createuniqueid([string type]):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
type string  No If the string "counter" is passed then 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.