Velocity Email Scripting issue.

milanjain2208
Level 2

I have a custom object named "application" that is associated with People/Leads. I'm aiming to incorporate the fields from the "application" into an email. This email should be triggered whenever there is a change in the status of any application field. To achieve this, I'm utilizing a velocity email script.

To start, I've generated an email script token named "my.application."

milanjain2208_1-1693126194073.png

 


My current approach within the email is as follows:

Hello {{lead.First Name:default=Friend}},

We wanted to inform you that the status of your application {{{{my.application}}.applicationID}} has been updated to: {{{{my.application}}.status}}.

Unfortunately, this approach isn't yielding the expected results. Similarly, the following alternative isn't proving successful either:

Your application {{my.application.applicationID}}'s status has been modified to {{my.application.status}}.

I'm seeking guidance on the best course of action:

  1. Is it advisable to generate distinct tokens for "applicationID" and "status"?
  2. Alternatively, should I draft the entire email directly within the email script?
12 REPLIES 12