---
schema_version: "1"
id: 12d0fc2e46762e475adefd78e80d859ae2f6ccf484291385406a2a5a364c47a7
title: Values (dw::util::Values)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-values.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-values
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a4f0b73f87150e8582a1a218f16e188fd26624086db450940846da97f0dfe83f
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# Values (dw::util::Values)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This utility module simplifies changes to values.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::util::Values` to the header of your DataWeave script.

_Introduced in DataWeave version 2.2.2._

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.6/dw-values-functions-attr">attr</a></p></td><td><p>This function creates a <code>PathElement</code> to use for selecting an XML attribute and populates the type’s <code>selector</code> field with the given string.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.6/dw-values-functions-field">field</a></p></td><td><p>This function creates a <code>PathElement</code> data type to use for selecting an <em>object field</em> and populates the type’s <code>selector</code> field with the given string.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.6/dw-values-functions-index">index</a></p></td><td><p>This function creates a <code>PathElement</code> data type to use for selecting an <em>array element</em> and populates the type’s <code>selector</code> field with the specified index.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.6/dw-values-functions-mask">mask</a></p></td><td><p>This <code>mask</code> function replaces all <em>simple</em> elements that match the specified criteria.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.6/dw-values-functions-update">update</a></p></td><td><p>This <code>update</code> function updates a field in an object with the specified string value.</p></td></tr></tbody></table>

## Types

- [Values Types](https://docs.mulesoft.com/dataweave/2.6/dw-values-types)
