Hello people! I want to understand how we can filt...
# support
l
Hello people! I want to understand how we can filter out some events to be sent to a particular destination and others to other specific destinations?
q
Hi @loud-tiger-86324 You can write destination-specific transformations to achieve that. Here is the documentation https://www.rudderstack.com/docs/features/transformations/
l
I know this, but according to my knowledge, it filters the events’ data attributes, right? Not the whole event. Let’s say I have 5 events, but I only want to to send 1 event to a webhook, and filter 4 events for that webhook. Is that possible?
h
You can return null from the transform which would throw away the event
or from a transform using an array - you can delete the relevant event from the array
Copy code
delete events[2];
l
ok got it! THank you!
✅ 1