Forum Discussion
Testing nested event properties
According to the Braze documentation, nested objects (i.e. nested event properties) are fully supported for use in custom events and purchase events and can be used for personalization, message triggering, and segmentation. However, when it comes to the Preview & Test section, the interface is primarily designed to let you manually enter data for basic (top-level) properties. At this time, you cannot directly input or simulate nested JSON structures within the Preview & Test panel. In other words, while nested event properties work in live messages when the event payload includes them, you won’t be able to impersonate that nested structure solely via the Preview & Test input fields.
To effectively test messages that rely on nested properties, you have a couple of workarounds:
- Use Advanced Event Properties in your personalization setup. When you add personalization via the “Add Personalization” modal in the Braze dashboard, you can select Advanced Event Properties. This allows you to reference nested event data once a schema has been generated (typically from actual incoming events that contain nested JSON data).
- Trigger a test campaign or Canvas that uses an actual API event payload which includes your nested data. This way, the message rendering will have access to the nested structure as processed by Braze.
For more details on implementing nested objects with custom events and purchases, please refer to the official Braze documentation on nested objects: [Braze Nested Objects Documentation](https://www.braze.com/docs/developer_guide/data/nested_objects/).
I hope this clarifies the current functionality.
Related Content
- 5 months ago
- 28 days ago
- 2 months ago