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
userIdas an identifier for the object.
Thanks in advance