---
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: join (list1, list2)
layout: subsection
---

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

Combines 2 lists containing the same types of objects.

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

`List`

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

```
list:join(list1, list2)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>list1</td><td>The first list of Objects</td></tr><tr><td>list2</td><td>The second list of Objects</td></tr></tbody></table><br/>

<b>Example</b>

`list:join(list:toList('value0', 'value1'), list:toList('value2', 'value3'))`

Returns `[value0, value1, value2, value3]`

You can use `list:join` to combine 2 lists of endpoint data. For example, assume <i>countries1</i> and <i>countries2</i> are endpoints in a PMD:

```
<% list:join(countries1.items, countries2.items) %>
```

