Add
Overview
Adds a new sender profile to the account and returns the created objectSyntax
Add(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | object | Required | JSON object representing new sender profile properties |
Example
This sample code adds a sender profile to your account:
var newSP = {
"Name" : "SSJS Added Send Profile",
"CustomerKey" : "test_send_profile",
"Description" : "An SSJS Added Profile",
"FromName" : "Andrea Cruz",
"FromAddress" : "acruz@example.com"
};
var newSenderProfile = SenderProfile.Add(newSP);