Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Ok I fixed it with this one:#set($listSize = $OpportunityList.size() - 1)$!OpportunityList.get($listSize).fieldNameThe only case where it won't be working is when OpportunityList is empty (but this can't happen in my case).Hope this helps!
Hey guys!I've been trying this Velocity script inside a token in order to retrieve fields value contained in the last opportunity attached to a lead:$!OpportunityList.get(OpportunityList.size() - 1).fieldNameBut an error occurred while rendering the email (error is happening when encountering " - 1"...