Loading...
Area: Episerver Campaign
Applies to versions: Not applicable

addAll

Recommendations [hide]

Adds multiple recipients to a unsubscribe list in Episerver Campaign. The recipients are unsubscribed from all recipient lists (but are not informed). The unsubscribe status is valid until the remove method is invoked or the recipient resubscribes using a "normal" opt-in process.

Use this method to mark multiple recipients as unsubscribed. Recipients that have been added to the unsubscribe list using this method are still visible in the recipient list, but are skipped on mailing dispatch. To undo this step and re-subscribe a recipient, use the remove method.

Be aware that re-adding a recipient using the add2 method also removes him from the unsubscribe list if he had previously been marked as unsubscribed and no opt-in process ID is submitted.

Type: void

Parameters

NameTypeValue

sessionId

String

ID of the session

recipientListId

long

(Optional) Recipient list the recipients are assigned to

If a client-wide unsubscribe list is configured, this parameter is meaningless. If recipient list-based unsubscribe lists are configured, the parameter selects the recipient list from which the recipients are unsubscribed.

Set the value to 0 to force a client-wide unsubscribe even if the client is configured to use recipient list-based unsubscribes.

recipientIds

String[ ]

IDs of the recipients

Return values

 -

Code structure

void addAll(String sessionId, long recipientListId, String[] recipientIds)
Do you find this information helpful? Please log in to provide feedback.

Last updated: Apr 25, 2018

Recommendations [hide]