AnsweredAssumed Answered

Velocity script retrieving fields value from last opportunity

Question asked by Keyvan HAMIDZADEH on Apr 11, 2018
Latest reply on Apr 11, 2018 by Sanford Whiteman

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).fieldName


But an error occurred while rendering the email (error is happening when encountering " - 1").

Any thoughts about this?


Thanks a lot