> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itential.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server.

# values

> Use the values task to return an array of the enumerable property values of an object.

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

| 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 `obj`. |

## Example 1

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

![](/_fern-img/51a04f9f6498885111bb8bd35bdaff30af04d2d4f9e496b080b32af522eec729.webp)

The outgoing `values` array contains the two property values:

![](/_fern-img/5df195031b2580c8a36573c94f91bdc121b274f6178b7a81fbed605eab6d656b.webp)

## Example 2

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

![](/_fern-img/ee8b2538e3b0b324385e22e5598885efd0a894dbf96ef311bf9ff1d94f4ff999.webp)

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

![](/_fern-img/9fdb5a079d18f99d93e88a953b48b431f412dcf787184c455777459693e04fe0.webp)