-
|
I’m trying to build a journey that sends user and event data to an external webhook to classify users by how recently they interacted. Here’s the setup: Problem: In the webhook body template, I tried this:
But when previewing or running the journey, event.created_at is coming through as undefined. I also tried using a variable step before the webhook to store the event in journey.last_open, and then referencing {{ journey.last_open.created_at }}, but that didn’t work either. The docs say that event is available when the journey is triggered by an event, which is the case here. Still, the object is either empty or the created_at field is not accessible. Questions: Any insights would be helpful. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
By and large event data (as accessed via the |
Beta Was this translation helpful? Give feedback.
By and large event data (as accessed via the
eventkey) is not available inside of action steps themselves since its almost impossible to know what event you are referring to (as a journey progresses there could be hundreds of events that are being referenced in different places). It's mostly only available in rules since in those situations it's comparing against anything that matches. Entrance events however are saved as the journey data for that given step so for your example, as long as the "trigger" is a journey entrance you should be able to get to the date you are looking for by using:journey.entrance_data_key.event.created_at