AMPscript
Add
CancelSend
Definition.Add
Definition.AddWithDE
Definition.AddWithFilterDefinition
Definition.Remove
Definition.Retrieve
Definition.Send
Definition.Update
Remove
Retrieve
RetrieveLists
Validate Your Server-Side JavaScript using WSProxy
Add a send definition that incorporates a sendable data extension
Definition.AddWithDE(1, 2, 3, 4, 5)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Customer key, name, and subject line for send definition |
| 2 | string | Required | Customer key for related send classification |
| 3 | string | Required | Customer key for email used in send definition |
| 4 | string | Required | Customer key of sendable data extension used in send definition |
| 5 | string | Required | Customer key of publication list to use with send definition |
This sample code adds the send definition with the applicable sendable data extension:
1var esdParams = {
2 "CustomerKey" : "ssjs_de_esd_1c",
3 "Name" : "SSJS DE Test ESD3",
4 "EmailSubject" : "Third send By Test DE Send Definition"
5};
6
7// local values
8var scKey = 'scKey';
9var emailKey = 'test_email';
10var deKey = 'deKey';
11var pubListKey = 'myPubList';
12
13var status = Send.Definition.AddWithDE(esdParams, scKey, emailKey, deKey, pubListKey);