---
url: /process-functions/script-uuid.md
description: Generates a universally unique identifier (UUID).
---

# script.uuid&#x20;

Generates a universally unique identifier (UUID).

```js
const uuid = script.uuid()
```

#### Parameters

None

#### Returns

* `string` - A randomly generated UUID string.

#### Example

```js
// Generate a unique identifier
let id = script.uuid();
console.log(id); // e.g., "550e8400-e29b-41d4-a716-446655440000"

// Use as a unique key for data
let record = {
    id: script.uuid(),
    name: "New Record",
    created: Date.now()
};
```
