thankful-gpu-70135
09/05/2023, 7:21 PMexternal_id and omit email.
2. Do a followup Update Profile call to then set the email.
Questions:
1. Is this even possible seamlessly with rudderstack? As far as I can tell we cannot do this with just a transformation. I think the only way to do this would be for us to do 2 identify calls -- the first one with just external_id, then a second identify call with external_id and email.
2. Assuming this is correct, can someone at rudderstack confirm which klaivyo APIs are called when we call a Rudderstack identify call and pass in the properties: { subscribe: true} trait to subscribe it to a list? Is it correct that you first call https://a.klaviyo.com/api/profiles for identify calls, then a second call to https://a.klaviyo.com/api/profile-subscription-bulk-create-jobs/ to subscribe to a list?millions-activity-52391
09/05/2023, 7:21 PMhundreds-lifeguard-65770
09/05/2023, 8:17 PMthankful-gpu-70135
09/05/2023, 9:15 PM/api/profile then to /api/subscribeUserToList if there is a subscribe property provided.
However, what i'm still not clear on is how and when profile UPDATES are called for existing user properties.
Do we just call multiple rudderstsack identify calls and that is handled implicitly?thankful-gpu-70135
09/06/2023, 1:42 AMboundless-florist-7608
09/06/2023, 3:09 AM/api/profiles, for creating the profile and gets the profileId in response in both the case if the profile already exists or not and then calls the /api/profiles/{id} for updating the profile. So, both create and update or only update (if profile exists) happens for each identify call.thankful-gpu-70135
09/06/2023, 8:01 AMexternal_id trait/user property on calls to klaviyo.
With Klaviyo, we specifically need to be able to create profiles with same email address. Good news is that Klaviyo support tells us this is supported!
However, i think the way rudderstack behaves is that it doesn't allow this. If we make an identify call without an email and only provide the external_id, there seems to be some lookup happening to tie it to an old account.
You can test this with this:
• have “use email as primary identifier” disabled in our klaviyo destination config
• since rudderstack doesn’t have a separate profile update vs identify/create call, we need to call Rudderstack identify twice.
• First identify call, include only external_id="A" as a trait but do not include email address
• second identify call, use the same external_id="A" as trait but *this time include `email=emailA@foo.co*m`*.* This should update the klaviyo profile with the email address
• Reset the identity
• third call, make another identify call, but this time a different external_id="B" but again do not include email address
• fourth, make another identify call, but this time use the external_id="B" and use same email address as before email-emailA@foo.com.
You get an error instead of this succeeding.millions-activity-52391
10/07/2023, 1:58 PM