values

The values task returns an array whose elements are the enumerable property values of a given object.

Potential use case

Use values to create an array for use in a loop later in the workflow. This task is most commonly used in combination with other tasks in an automation workflow.

Properties

IncomingTypeDescription
objObjectRequired. The object whose enumerable property values are to be returned.
OutgoingTypeDescription
valuesArrayAn array containing the enumerable property values of obj.

Example 1

In this example, the obj keys are "first" and "last" with values "myFirstName" and "myLastName" respectively.

values task with obj containing first and last name keys

The outgoing values array contains the two property values:

Output showing values as an array with myFirstName and myLastName

Example 2

In this example, the obj key is "name" and its value is an object containing "first": "myFirstName" and "last": "myLastName".

values task with obj containing a nested name object

The outgoing values array contains the nested object as an element:

Output showing values as an array with the nested name object