---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: getValues (map)
layout: subsection
---

## <a id="section_m3p_myb_5db"></a>Description

Returns a list of all values from a given map of key/value pairs. getValues is null-safe.

## <a id="section_kzt_bhj_1tb"></a>Return Type

`List`

## <a id="section_dz5_pwg_5db"></a>Namespace Function Syntax

```
map:getValues(map)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>map</td><td>The input Map.</td></tr></tbody></table><br/>

<b>Example</b>

This example uses `list:createMapList` and `list:toList` to create the input map: `{{"key", "value0"}, {"key", "value1"}}`.

`map:getValues(list:createMapList(list:toList('value0', 'value1'), 'key'))`

Returns `['value0', 'value1']`

