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

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