Syntax

.execute(objectType, properties)
2 arguments

Parameters

Name Type Required Description
objectType string Yes SOAP API object type
properties object Yes Execution parameters

Return Value

Object with Status, RequestID, and Results.

Examples

Execute a triggered send

var proxy = new Script.Util.WSProxy();
var result = proxy.execute("TriggeredSend", {
    TriggeredSendDefinition: {
        CustomerKey: "WelcomeEmail_TSD"
    },
    Subscribers: [{
        EmailAddress: "jane@example.com",
        SubscriberKey: "sub_jane",
        Attributes: [
            { Name: "FirstName", Value: "Jane" }
        ]
    }]
});

Notes

For most triggered send use cases, the TriggeredSend Core library object (ts.Send()) is simpler and more readable.

See Also