Forum Discussion
ashleyatbraze
2 years agoBraze Employee
FAQ: Can I Use Purchase Events in Liquid?
Question: I want to personalize my message using purchase event properties as Liquid tags. Is this possible?
You can use event properties for Purchase events in Liquid. It would be a similar format where you put an event property instead of a custom attribute:
{{event_properties.${your_custom_event_property/purchase_event_name}}}
There are two options:- Trigger message via API: you can use our API to trigger the message and attach trigger properties to the API call. The trigger properties can be pulled into a message via Liquid.
- Event property: you can send in event properties (we save them for 30 days) and pull them into a message with Liquid.
- ashleyatbrazeBraze Employee
You can use event properties for Purchase events in Liquid. It would be a similar format where you put an event property instead of a custom attribute:
{{event_properties.${your_custom_event_property/purchase_event_name}}}
There are two options:- Trigger message via API: you can use our API to trigger the message and attach trigger properties to the API call. The trigger properties can be pulled into a message via Liquid.
- Event property: you can send in event properties (we save them for 30 days) and pull them into a message with Liquid.
Related Content
- 7 months ago
- 2 months ago