CreateObject()

Creates a Marketing Cloud Engagement API Object.

Availability 

Marketing Cloud Engagement ✅ Yes
Marketing Cloud Next ❌ No

Syntax 

1CreateObject(objectName)

The CreateObject() function has one parameter:

  • objectName (string): Required. The name of the new API Object.

Usage 

This example creates a Subscriber object in the Marketing Cloud Engagement API.

1SET @subscriber = CreateObject('Subscriber')

An object created with CreateObject() only persists for one Invoke API call. If you create a Subscriber object and then update it using the InvokeUpdate() function, you can’t pass it to a Triggered Send.