Data are stored in BigQuery as columns like: unstruct_event_cz_activate_equa_form_validation_1_0_0.field_actual_value
I would like to access those data in an custom javascript enrichment. But it doesn’t work for me.
I can access all field from canonical datamodel using PoJo getters:
var query=event.getPage_urlquery()
It works fine. But I can’t fid out the correct getter function for accessing data from my custom schema.
Thans for any help.
Hi @Jiri_Stepan, welcome to the Snowplow community!
If I understand correctly you’re sending events as custom events (e=ue). In that case, the self-describing JSONs that you’re sending are available in event.getUnstruct_event(). Please note that they are stored as String, so you need to parse them as JSON first (JSON.parse()) and then you can access directly the fields that you want (e.g. json.fieldActualValue).
I’m wondering if there’s a place where the POJO getters are documented? I couldn’t find any.
I can only assume their format and case but I have no way to confirm them other than testing them.
For example, if I want to access se_property, I assume the getter would be getSe_property() but this assumption is only empirical.
If there’s no doc on it, could anyone confirm me the getters format please?
Thanks a lot!