Contact Free trial Login

prop

prop(String): String | Null

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

Parameters

Name Description

propertyName

The property to retrieve.

Example

This example gets the user.timezone property.

Source

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

Output

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

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.