---
schema_version: "1"
id: a4ef2a0248d9b7e3b5e57ff783a65a0160cfa9217e255e065e9c5ec7f1e7700f
title: CreateObject
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformAPICreateObject.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformAPICreateObject.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 390a4418b6cf7914a752c85ddd82665a4c06b83da205cb9d533b7201e0766d5d
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# CreateObject

## Overview

Create the specified API object

### Syntax

CreateObject(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                  |
| ------- | ------ | ------------ | ---------------------------- |
| **1**   | string | **Required** | Name of API object to create |

## Example

```
<script runat="server">
     var newObject = Platform.Function.CreateObject("Subscriber");
</script>
```
