AMPscript
Add
Remove
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
Updates the send classification and returns a status. You must provide keys for both the sender and delivery profiles to successfully update a send classification.
Update(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Attributes from send classification to change |
This sample code updates the name attribute for the send classification with the external key mySendClassification:
1var sc = SendClassification.Init('mySendClassification');
2
3var updatedSC = {
4 Name : "Updated Send Classification",
5 SenderProfileKey : "mySPKey",
6 DeliveryProfileKey : "myDPKey"
7};
8
9var status = sc.Update(updatedSC);