HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

containsMultiple

Queries whether a recipient exists in multiple recipient lists in Optimizely Campaign.

Type: boolean[ ]

Parameters

NameTypeValue
sessionIdStringID of the session
recipientListIdslong[ ]IDs of the recipient lists
recipientIdStringID of the recipient

Return values

For each recipient list:

  • 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[] containsMultiple(String sessionId, long[] recipientListIds, String recipientId)

What’s Next
Did this page help you?