Add custom object details to email | Community
Skip to main content
Sheila_McGrath
Level 2
April 16, 2019
Question

Add custom object details to email

  • April 16, 2019
  • 1 reply
  • 1248 views

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}

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
April 16, 2019

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