We're trying to use the foreach directive in Velocity to list all the Order Dates that a contact had have, over time. For example, Joe Smith placed an order today and one yesterday, so in the email I want it to list out both dates. I've used this script: <ul>
#foreach ($Program_Order in $Program_Order__cList)
<li>${Program_Order__cList.get(0).CreatedDate}</li>
#end
</ul> But in the email outputs, it just lists out yesterday's date, twice. So it's recognizing that Joe has 2 order records attached to it, but only populating it with the first order's created date in the list. What am I missing in the script? Thanks!
... View more