Velocity - Inserting last order id as a variable in emails
I am trying to use Velocity math tool to populate the last orderid for a customer. I can't quite seem to get the Velocity script to run properly.
When dragging the custom object variable, the following is inserted: ${jobItemList.get(0).jobItemId}
I do not understand what the get(0) is doing. Is it trying to pull a minimum value? First value? I want to pull the maximum value. I was trying to use a $math.max variable, but nothing seems to be working.
Any advice is greatly welcome! Thanks!
If anyone can help me in the Los Angeles area, let me know and we'll grab lunch! ![]()