Question
Velocity script doesn't work
Hello everyone!
I'm trying to use the Velocity template language in Marketo.
For example, I want to get all the people who live in Boston.
This is my simple Velocity script:

When I send a test message, then comes a blank message.
Who knows what's wrong?
Source:
#set ( $myLeadList = $complex.Objects.get("Lead") )
I'm trying to use the Velocity template language in Marketo.
For example, I want to get all the people who live in Boston.
This is my simple Velocity script:

When I send a test message, then comes a blank message.
Who knows what's wrong?
Source:
#set ( $myLeadList = $complex.Objects.get("Lead") )
#foreach( $myResult in $myLeadList )
#if ( $myResult.City == "Boston" )
<b>$myResult.Full_Name</b> lives in Boston <br />
#end
#end