InvokeCreate
→ objectExecutes a SOAP Create operation on a fully configured SOAP API object. Use with CreateObject and SetObjectProperty.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.InvokeCreate(apiObject, status, options)
3 arguments
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
apiObject |
object | Yes | SOAP object built with CreateObject/SetObjectProperty |
status |
array | Yes | Array that receives the status and request ID of the API call (e.g. [0, 0]) |
options |
object | Yes | API configure options to include in the call. Can contain a null value. |
Examples
var StatusAndRequestID = [0, 0];
var result = Platform.Function.InvokeCreate(deObject, StatusAndRequestID, null);
var status = StatusAndRequestID[0];
var requestID = StatusAndRequestID[1];
if (status !== "OK") {
Write("Error — RequestID: " + requestID);
}
WSProxy is recommended over InvokeCreate for most use cases — it is simpler, uses native JS objects, and handles serialization automatically.