Email subscription
batch.profile.getEditor()
.setEmailAddress("john.doe@batch.com") // Null to erase. Addresses must be valid.
.setEmailMarketingSubscription("subscribed") // or "unsubscribed"
.save();Last updated
batch.profile.getEditor()
.setEmailAddress("john.doe@batch.com") // Null to erase. Addresses must be valid.
.setEmailMarketingSubscription("subscribed") // or "unsubscribed"
.save();Last updated