---
schema_version: "1"
id: e5b45a6ba097b887df936cb36b554fcab202eb4e2888d6bd54dbfd6474d0c69f
title: uuid
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-core-functions-uuid.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-core-functions-uuid
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4f4ccff1908c8b2ae229786e7a28e5ea6d427cc97c25a9ad0f235e23cb0394ef
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# uuid

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## uuid(): String

Returns a v4 UUID using random numbers as the source.

### Example

This example generates a random v4 UUID.

#### Source

%dw 2.0 output application/json
---

uuid()

#### Output

```JSON
"7cc64d24-f2ad-4d43-8893-fa24a0789a99"
```
