values
  • 23 May 2023
  • Dark
    Light
  • PDF

values

  • Dark
    Light
  • PDF

Article summary

values Task Purpose

The values task is used to get the value of keys in an object. It returns an array whose elements are the enumerable property values found in the given object.

Potential Use Case

The values task could be used to create an array that you may want to use in a loop at a later time. This task would most likely be used along with other tasks in the workflow of an automation.

Properties

Input and output parameters are shown below.

Incoming Type Description
obj Object Required. The object whose enumerable property values are to be returned.


Outgoing Type Description
values Array An array containing the enumerable property values of the given obj.

Example 1

In this IAP example the obj keys are "first" and "last" and the values for each key are "myFirstName" and "myLastName", respectively.

valuesKeyinput-01


The expected values that return are shown below in an array.

valuesKeyResult-02

Example 2

In this example, the obj key is now "name" and the values for the object key are "first": "myFirstName", "last": "myLastName", respectively.

valuesKeyInput-01


The values that return are shown in the following array.

valuesKeyResult-02


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.