SOLVED

What is wrong with my token?

Go to solution
Travis_Schwartz
Level 4

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.

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

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?

View solution in original post

16 REPLIES 16