---
url: /flow/guide/scripting-reference/functions/guid/newguid.md
---

# NewGuid

## Declaration

`Function NewGuid : TGuid`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := NewGuid;
end;
```

## Description

Returns a new TGuid value. The value will be unique.
