Velocity script not accepting my token

Anonymous
Not applicable

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

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Velocity script not accepting my token

See this thread: Can Velocity process program tokens?

Non-Velocity program token content can't be used from Velocity. Only variables in the Velo context can be used.