InvokeUpdate
→ objectExecutes a SOAP Update operation on a configured SOAP API object.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.InvokeUpdate(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, "EmailAddress", "updated@example.com");
Platform.Function.SetObjectProperty(sub, "SubscriberKey", "sub_123");
var status = "";
var code = "";
var msg = "";
Platform.Function.InvokeUpdate(sub, status, code, msg);