InvokeDelete
→ objectExecutes a SOAP Delete operation on a configured SOAP API object.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.InvokeDelete(object, statusMsg, errorCode, errorMsg)
4 arguments
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
object |
object | Yes | SOAP object built with CreateObject/SetObjectProperty |
statusMsg |
string | Yes | Receives status |
errorCode |
string | Yes | Receives error code |
errorMsg |
string | Yes | Receives error message |
Examples
var sub = Platform.Function.CreateObject("Subscriber");
Platform.Function.SetObjectProperty(sub, "SubscriberKey", "sub_123");
var status = "";
var code = "";
var msg = "";
Platform.Function.InvokeDelete(sub, status, code, msg);