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