AMPscript
Add
Attributes.Retrieve
Lists.Retrieve
Remove
Retrieve
Statistics
Unsubscribe
Update
Upsert
Validate Your Server-Side JavaScript using WSProxy
Updates the subscriber and returns a status
Update(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required |
This sample code updates a currently existing subscriber.
1var subscriber = {
2 "EmailTypePreference": "HTML",
3 "Attributes":{"First Name": "Test", "Last Name": "User"}
4};
5
6var subObj = Subscriber.Init("SubKey");
7var status = subObj.Update(subscriber);