Right now I have 1 Custom Object that contains 2 data points that I need to add to an email via a token. How do I use Velocity to accomplish this? The Custom Object is "Account" and I need the Maturity Date and Product Code of that Account IF the maturity date is in a specific date range. For instance, only insert into email if Maturity Date is between 4/22/19 and 4/30/19. Once that maturity date is inserted, I need the corresponding Product Code for that Maturity Date.
Code is currently: ${account_cList.get(0).maturityDate}${account_cList.get(0).productCode}
You need to start with the essentials:
And also, always highlight your code (as Java, the closest supported language) using the syntax highlighter.