Syntax

Platform.Function.InvokeExecute(apiObject, status, options)
3 arguments

Parameters

Name Type Required Description
apiObject object Yes SOAP object built with CreateObject and configured with 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 execObj = Platform.Function.CreateObject("ExecuteRequest");
Platform.Function.SetObjectProperty(execObj, "Name", "LogUnsubEvent");

var StatusAndRequestID = [0, 0];
var result = Platform.Function.InvokeExecute(execObj, StatusAndRequestID, null);
var status = StatusAndRequestID[0];
var requestID = StatusAndRequestID[1];

WSProxy is recommended over InvokeExecute for most use cases — it is simpler, uses native JS objects, and handles serialization automatically.

See Also