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

# prop

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

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