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

# Values (dw::util::Values)

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

This utility module simplifies changes to values.

The module is included with Mule runtime. To use it, you must import it into your DataWeave code,
for example, by adding the line `import * from dw::util::Values` to the header of your script.

_Introduced in DataWeave 2.2.2. Supported by Mule 4.2.2 and later._

## 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.3/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.3/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.3/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.3/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.3/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>
