Get(UUID)
Returns text representing a Universally Unique Identifier (UUID).
Format
Get ( UUID )
Parameters
None
Data type returned
text
Originated in version
12.0
Description
Returns a unique 16-byte (128-bit) string. For example, you can use this function to generate a unique ID of a record.
For unstored calculations, returns a new string each time Get(UUID) is evaluated.
Example 1
Auto-enter calculation: In a text field, specify the auto-enter calculation Get(UUID)
. See Defining automatic data entry.
Every new record has a unique ID in the field—for example:
E47E7AE0-5CF0-FF45-B3AD-C12B3E765CD5
You can use this technique to define a primary key field, if you can't use the Get(UUIDNumber) function because it requires a later version of FileMaker Pro.
Example 2
Unstored calculation: In a calculation field, specify the calculation Get(UUID)
. For Storage Options, select Do not store calculation results. Every time a record is accessed, a new string is generated.