Loading...
Area: Optimizely Campaign
Applies to versions: Not applicable

containsValid

Recommended reading 

Queries whether a recipient can receive mailings (is valid) in Optimizely Campaign by checking the following conditions:

  • already exists in a recipient list
  • is not blocked in a recipient list
  • is not unsubscribed in a recipient list
  • is not bounced-out in a recipient list
  • has finished an opt-in process (if any opt-in process exists) in a recipient list

By default, the media type EMAIL is used. Use the setMediaType method to select another media type such as SMS.

Type: boolean

Parameters

Name Type Value

sessionId

String

ID of the session

recipientListId

long

ID of the recipient list

recipientId

String

ID of the recipient

Return values

  • true: Recipient matches all conditions and receives mailings
  • false: Recipient does not match at least one condition and does not receive any mailing

Code structure

boolean containsValid(String sessionId, long recipientListId, String recipientId) 
Do you find this information helpful? Please log in to provide feedback.

Last updated: Apr 25, 2018

Recommended reading