HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

contains

Queries whether a recipient already exists in a recipient list in Optimizely Campaign.

Type: boolean

Parameters

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

Return values

  • true: Recipient already exists
  • false: Recipient does not exist or an entry exists but the opt-in process has not been finished yet (i.e., the double opt-in link has not been clicked)

Code structure

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

What’s Next
Did this page help you?