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

# 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"} }
```
