---
schema_version: "1"
id: 7071a6a9a7ca2e6c3f6708612f2d1a3cfe8bf5cf346d159debc7409c123ae869
title: prop
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-runtime-functions-prop.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-runtime-functions-prop
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f2ab873529d280705d8e791139edc1effd467a275013c7310020ad9154ece1a5
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# prop

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

## prop(propertyName: String): String | Null

Returns the value of the property with the specified name or `null` if the property is not defined.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>propertyName</code></p></td><td><p>The property to retrieve.</p></td></tr></tbody></table>

### Example

This example gets the `user.timezone` property.

#### Source

```DataWeave
%dw 2.0
import * from dw::Runtime
output application/dw
---
{ "props" : prop("user.timezone") }
```

#### Output

```JSON
{ props: "America/Los_Angeles" as String {class: "java.lang.String"} }
```
