AMPscript
Add
Remove
Retrieve
Subscribers.Add
Subscribers.Retrieve
Subscribers.Tracking.Retrieve
Subscribers.Unsubscribe
Subscribers.Update
Subscribers.Upsert
Validate Your Server-Side JavaScript using WSProxy
Updates the status of the specified subscriber on the initialized list. Initialize the list using the list’s external key value
Subscribers.Update(1, 2)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Attribute containing Email address of subscriber or a JSON object containing the EmailAddress and SubscriberKey values for the subscriber |
| 2 | string | Required | New status of subscriber on initialized list |
This sample code sets the status of the subscriber to active.
1var myList = List.Init("myList");
2var status = myList.Subscribers.Update("aruiz@example.com","Active");