---
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: getObject (map, key)
layout: subsection
---

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

Finds a value in a key/value map using a given key. getObject is null-safe.

Alternatively, you can use <i>someMap[someKey]</i>.

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

`Object`

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

```
map:getObject(map, key)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>map</td><td>The input Map.</td></tr><tr><td>key</td><td>A key to find in the map</td></tr></tbody></table><br/>

<b>Example</b>

`map:getObject({'key' : 'value1'}, 'key')`

Returns `'value1'`

