Skip to main content
April 27, 2017
Question

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

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 27, 2017

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.

Translate