1 Reply Latest reply on Apr 27, 2017 9:46 AM by Sanford Whiteman

    Velocity script not accepting my token

      Hi All,

       

      I'm trying to programme an email template that can pull information from an email programme.

       

      I created an email template and "hard coded" the velocity tokens into the html.

       

      Now inside these velocity scripts, I wanna place text tokens so it's easier for us to add variables without having to scroll through the programming language and break anything by mistake.

       

      This is what I have:

       

      #if (${lead.iASNewsletterProductivity} == "1")
         
      <div style="padding-right: 0px; padding-left: 0px; padding-top: 25px; padding-bottom: 0px;">$my.title</div>
      
      #end
      
      

       

      Now the rule works and only users that have "ticked" the box receive this div section on their emails the problem is Marketo is not treating the $my.title token and is placing it like plain text.

       

      If I replace $my.title with $lead.FirstName it works...

       

      How can I get this script to work!?

       

      Thanks,

      Simao