Syntax

var result = proxy.execute(objectType, properties);

Parameters

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

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