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

containsByRecipientList

Queries whether a recipient is contained in a recipient list-based unsubscribe list in Optimizely Campaign.

🚧

Prerequisite

Recipient list-based unsubscribe lists have been created.

📘

Note

If only one client-wide unsubscribe list exists, this method does exactly the same as contains.

Type: Boolean

Parameters

NameTypeValue
sessionIdStringID of the session
recipientListIdlongID of the recipient list
recipientIdStringID of the recipient

Return values

  • true: Recipient is found on at least one recipient list-based unsubscribe list
  • false: Recipient is not found on any recipient list-based unsubscribe list

Code structure

boolean containsByRecipientList(String sessionId, long recipientListId, String recipientId)