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(object, statusMsg, errorCode, errorMsg)
4 arguments
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
object |
object | Yes | SOAP object built with CreateObject/SetObjectProperty |
statusMsg |
string | Yes | Variable (passed by ref) that receives the status |
errorCode |
string | Yes | Variable (passed by ref) that receives error code |
errorMsg |
string | Yes | Variable (passed by ref) that receives error message |
Examples
var status = "";
var code = "";
var message = "";
var result = Platform.Function.InvokeCreate(deObject, status, code, message);
if (code !== "0") {
Write("Error: " + message);
}
WSProxy is recommended over InvokeCreate for most use cases — it is simpler, uses native JS objects, and handles serialization automatically.