able-controller-17526
01/03/2023, 4:29 PMlistIds), and I want to send identify events to one or the other or both depending on business logic, how can I do that?
I understand we could do something like:
integrations: {
"All": true,
"MailChimp": false
}
But if I have two Mailchimp destinations this seems to apply to all of them at the same time, right? How can I tell Rudderstack to only target one specific destination from Maillchimp? Is there a way to use the destination id inside the identify call somehow?
Also, where do I get the names of all the keys for the destinations that can be used inside the integrations object? some seem to have camel casesilly-kitchen-30880
01/03/2023, 4:29 PMred-engineer-90710
01/03/2023, 4:53 PMIntegrations object. You can only select the destination name and after this, the filter applies to all instances of the chosen destination. It's not possible to add the destination id in there(as far as I'm aware). So doing what you intend on doing with the Integrations object is likely not the best approach.
What you can do instead is use a Transformation. Here's an example of the particular transformation that you'd be interested in. I've modified it slightly to basically block all Identify events:
export function transformEvent(event, metadata) {
const eventTypes = ["identify"];
const eventType = event.type;
if (eventType && eventTypes.includes(eventType)) return;
return event;
}
^ this transformation should block all identify events on whatever destination you apply this transformation to(you can choose the exact MailChimp instance to which this transformation will be applied to). It's basic business logic but you can pretty much get as advanced with it as you like.quiet-wolf-72320
01/03/2023, 4:53 PMquiet-wolf-72320
01/03/2023, 4:54 PMable-controller-17526
01/03/2023, 5:03 PMable-controller-17526
01/03/2023, 5:37 PMred-engineer-90710
01/03/2023, 5:57 PMable-controller-17526
01/03/2023, 10:14 PM