I'm trying to build a transform that flattens nest...
# support
t
I'm trying to build a transform that flattens nested properties since some destinations like Klaviyo doesn't work well with nested properties. However, when creating this transformation, I'm confused at when the transform is applied. This doc says this about the flow in which transformation works:
1. Tracks and collects events at the source.
2. Applies the transformation logic to your events.
3. Forwards the transformed event to your connected destination.
However, this is completely clear when transformations are applied. Are the transformations applied to the event AFTER rudderstack has done initial translation for a specific destination? Or before? It matters in how I need to think about writing the transformation.
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
t
Even the diagram isn't totally clear on what is being transformed
l
CC: @shy-kite-21035 @tall-lawyer-58398
t
To clarify the reason I'm asking is to think about how to write a transformation. Which payload is is working on?
k
Hey @thankful-gpu-70135 , Your transformation is applied even before the destination specific transformation is applied
t
@kind-carpenter-27609 thank you! It would be super helpful for the docs to be more specific about this.
k
Sure, we will make sure to make it more specific