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

contains

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

Type: Boolean

Parameters

NameTypeValue
sessionIdStringSession ID
recipientIdStringRecipient ID

Return values

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

Note: Usually, only one client-wide unsubscribe list exists.

Code structure

boolean contains(String sessionId, String recipientId)