Ways around the 100KB limit for Velocity scripts & proper JSON data serving Greetings Marketo-Nation,
I often found myself exceeding the 100KB limit[1] for Velocity scripts in emails. Therefore, I wanted to ask for better ways to achieve what I am trying do to. (Not so much about polishing bits code, although I am happy to get advise there, too, but more after general strategy.)
What I am trying to do:
a.) Keep JSON-like data structures at a central place/token, e.g. for recommending next best actions [2].
b.) Pick proper elements from a.) for any individual email recipient, and make the elements' attributes accessible in Velocity variables [3].
c.) Turn the picks into HTML in order to display up to 10 recommendations in that email[4].
Why does it not scale/work:
Now, a.) and c.) bloat up the code pretty quickly beyond 100K Bytes.
For c.), because I cannot use a loop to display the recommendations; otherwise, the redirect/tracking links won't work.
And a.), because there are potentially alot (>200) of items to pick from, not to say tha