So I'm trying to script a token based on a custom object... most importantly I want it to display text field 2 if someone has that custom object on their record.
I see this option in the coding, but am not sure how to tell Marketo which list to reference to display the text2 field.
${customList_cList.get(0).text2}
I think this should be relatively simple, but am not having any luck with it so I figured I would reach out.
Thanks in advance.
Solved! Go to Solution.
That code is outputting the text2 property of the 0th (i.e. first) item in the ArrayList of customList objects, in what you should consider an arbitrary sort order.
What is the “correct” customList object?