5 Replies Latest reply on Nov 22, 2016 10:51 AM by Sanford Whiteman

    Velocity script doesn't work

    Igor Khripunov
      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?


      #set ( $myLeadList = $complex.Objects.get("Lead") )
           #foreach( $myResult in $myLeadList )
           #if ( $myResult.City == "Boston" ) 
              <b>$myResult.Full_Name</b> lives in Boston <br />