Skip to main content

Hi all 👋

I have a question about the best way to push data from our system into the User object and use it in our email campaigns. In our system we have a user that can have multiple subscriptions, and they receive a separate email for each subscription that they have, with custom fields in the email template that are related to that subscription. Note that the user has the same email for all of their subscriptions. Given that there is a constraint that user's email is unique, I've thought about pushing subscriptions data as an array inside of the user object.

For example, let's say that all subscriptions have a renewal date and that we want to send an email for each subscription on its renewal date. In case there are two subscriptions with the same renewal date, the user should receive two emails, each containing information about a different subscription.

Is there a way to do this in Iterable?

From what I've seen, templates will receive the entire User object, and in this case the user object would have all of the subscriptions, not just the current one for which the email should be sent. I've thought about splitting the user into multiple users where each has data for only one subscription, but that's not possible due to

email
taking precedence over
userId
as an identifier for the object.

Thanks in advance 🙂

I'd like to hear a solution for this as well.

We're also testing having all our subscription details captured within an array for each user. As users can have multiple subscriptions at any given time this is presenting challenges when segmenting as Iterable searches the entire array at once.

Is anyone with a multi-subscription per user business model structuring their data differently?


Reply