Apache Velocity is a language built on Java which is designed for templating and scripting HTML content. Marketo allows it to be used in the context of Emails through the use of scripting tokens. This gives access to data stored in Opportunities and Custom Objects, as well as allowing the creation of dynamic content in emails. Velocity offers standard high-level control flow with if/else, for, and foreach to allow conditional and iterative manipulation of content. Here’s a simple example to print a greeting with the correct salutation:
Project Details
Bitbucket Repository: https://bitbucket.fitchratings.com/projects/FGMAR/repos/marketo/browse/html/scripting-tokens/marketo
Quick Links
Apache Velocity user guide
Email Scripting
