---
schema_version: "1"
id: f691eca3c0e5708ba3754ece57f90f6b3ca1fe7d219c3a36b60ef456b33a3eae
title: AddObjectArrayItem
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformAPIAddObjectArrayItem.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformAPIAddObjectArrayItem.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 78a3463858083db3672f257d5e31c074befe1a5234e35b5716b2836ff26e082c
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# AddObjectArrayItem

## Overview

Creates an item within an array for a specified API object

### Syntax

AddObjectArrayItem(1, 2, 3)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                        |
| ------- | ------ | ------------ | ---------------------------------- |
| **1**   | string | **Required** | Object on which to set array value |
| **2**   | string | **Required** | Name of array                      |
| **3**   | string | **Required** | New array value                    |

## Example

```
<script runat="server">
     Platform.Function.AddObjectArrayItem(RetrieveFilter, "Value", "5709");
</script>
```
