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

setMaxRecipients

Recommended reading 

Activates or deactivates the options Maximum number of recipients and Random order, and sets absolute values for them in Optimizely Campaign. See also setMaxRecipientsPercentage. The mailing must be of the type regular.

Type: void

Parameters

Name Type Value

sessionId

String

ID of the session

mailingId

long

ID of the mailing

maxRecipients

int

Maximum number of recipients

The value -1 means All (no maximum number of recipients set).

randomOrder

boolean

  • true: Recipients are selected on a random basis.
  • false: Recipients are selected by their ID starting with the lowest.

Return values: -

Code structure

void setMaxRecipients(String sessionId, long mailingId, int maxRecipients, boolean randomOrder)
Do you find this information helpful? Please log in to provide feedback.

Last updated: Apr 24, 2018

Recommended reading