Creates a Marketing Cloud Engagement API Object.
Availability
<table> <tr> <td>Marketing Cloud Engagement</td> <td>✅ Yes</td> </tr> <tr> <td>Marketing Cloud Next</td> <td>❌ No</td> </tr> </table>Syntax
CreateObject(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.
SET @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.