Add

Overview 

Adds a triggered send to your account and returns an initialized object if successful

Syntax 

Add(1)

Function Properties 

OrdinalTypeDescription
1stringRequiredProperties of the new triggered send

Example 

This sample code adds a triggered send to your account:

1var newTSD = {
2   "Name" : "Test TSD",
3   "CustomerKey" : "ssjs_tsd_key",
4   "FromName" : "Test From Name",
5   "FromAddress" : "me@example.com",
6   "EmailID" : 12345,
7   "SendClassificationID" : 54321
8};
9var tsd = TriggeredSend.Add(newTSD);