Add
Overview
Adds a triggered send to your account and returns an initialized object if successfulSyntax
Add(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Properties of the new triggered send |
Example
This sample code adds a triggered send to your account:
var newTSD = {
"Name" : "Test TSD",
"CustomerKey" : "ssjs_tsd_key",
"FromName" : "Test From Name",
"FromAddress" : "me@example.com",
"EmailID" : 12345,
"SendClassificationID" : 54321
};
var tsd = TriggeredSend.Add(newTSD);