getProperty
Returns a property value. Any property set by a workflow triggered in the same transaction can be accessed. For details on how to set a property value, see setProperty.
The getProperty and setProperty functions allow you to exchange data between workflows.
Syntax
function getProperty(propertyName: string): any
| Parameter | Description |
|---|---|
propertyName
|
Name of the property. |
Return Value
Returns the property value in its inherent data type.
Examples
In this example, we store the value of a property called output in a variable called storage.
var storage = getProperty('output');
In this example, we convert the contents of a JSON object property called names into a string and store it in variable called namesStr.
var namesStr = JSON.stringify(getProperty('names'));