Store objects in custom fields
Hi there,
We are using different online calculator which post their data as for post. In this form post all data are seperate data field.
The disadvantage is that all this filed will be overwritten in case of the next form post.
We like to store this data as object within one custom field. From what I read the best way would be to use a custom text area field. As custom ojects data can't be stored via smart campaign flows we like to use a custom field.
There are several posts on this topic but none of them worked for me.
From what I found out there are ways like the following:
https://nation.marketo.com/t5/product-discussions/tokenising-json-field-in-marketo/td-p/27919
Info from @sanfordwhiteman
You store data as JSON
{ "id" : 123, "booking_id" : "ABC","tax" : 1.875 }
You transform this data using "set" and "evalutate"
#set( $jsonProduct = '#set( $jsonProduct = ' + $Bookings2_cList[0].jsonProduct + ' )' )
#evaluate( $jsonProduct )
After this that data should be transformed into an velocity map.
{id=123, booking_id=ABC, tax=1.875}
I tried to get the data using a request like $object.id. But in my cas it didn't work.
Do you know what I do wrong?
How shoud I store data in my marketo custom data fields? (not in a custom object)
How can I add this data to an emaily velocity script?
How can I access a specific information via Key?
What do I have to consider for the values (does and don'ts)?
Thanks a lot.