Add custom object details to email

Highlighted

Add custom object details to email

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.

pastedImage_0.png

Code is currently: ${account_cList.get(0).maturityDate}${account_cList.get(0).productCode}

1 REPLY 1
Highlighted
Level 10 - Community Moderator

Re: Add custom object details to email

You need to start with the essentials:

And also, always highlight your code (as Java, the closest supported language) using the syntax highlighter.

https://s3.amazonaws.com/blog-images-teknkl-com/syntax_highlighter_v3.gif