Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

setMaxRecipients

Activates or deactivates the options Maximum number of recipients and Random order, and sets absolute values for them in Optimizely Campaign.

The mailing must be of the type regular.

See also setMaxRecipientsPercentage.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
maxRecipientsintMaximum number of recipients

The value -1 means All (no maximum number of recipients set).
randomOrderBoolean - 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)