---
url: /flow/guide/scripting-reference/data-types/guid.md
---

# Guid (TGuid)

## Declaration

`var myvariable : TGuid`

### Example

```pascal
procedure ScriptEvent (var Value : variant)
var myvariable : TGuid
begin
myvariable :=NewGuid;
loginfo('the value of myvariable is '+GuidToString(myvariable));
end
```

## Description

Guid is used to represent globally unique values. A Guid is a string of numbers separated with hypens. An example Guid is {F5078F18-C551-11D3-89B9-0000F81FE221}.

::: tip
Fields cannot be defined as Guid. Instead they will show up as String types.
:::
