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

isMaxRecipientsRandomOrder

Queries whether the recipients should be selected on a random basis in Optimizely Campaign.

This method depends on the setMaxRecipients method. See also getMaxRecipients, setMaxRecipients, and setMaxRecipientsPercentage.

Type: boolean

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing

Return values

  • true: Recipients are selected on a random basis. The return value is trueif:
    • the option Maximum number of recipients is activated and a corresponding value is set and
    • the option Random order is activated.
  • false: Recipients are not selected on a random basis.

Code structure

boolean isMaxRecipientsRandomOrder(String sessionId, long mailingId)