Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
I'm trying to use an #if statement in Velocity to check whether a field is empty. As per Sanford's excellent article here, Marketo imports everything into Velocity as strings, so he suggests using $var.isEmpty() instead of switching between different methods based on data type.But when I use this st...
Question for you Jeff....yes, if someone isn't engaging via email for 15 months it might be worth deletion, but given we can throw that email address to Facebook custom audiences and other channels these days, there might be an ability to win them over via another channel. And if email address is th...
Hey teamI'm trying something similar, but when I use the code given to Jim it's not working for me. Here's my code:#set ($listlength = ${abandonedCart_cList.size()}) #set( $lastIndex = $math.sub($listlength,1) )#set($str = $convert.parseDate(${abandonedCart_cList.get($lastIndex).serviceStartDate}, "...
Just to round this off, the above error around arrays is because I was using "Send Sample Email" instead of using a single flow action to test the scripting. Oops!
Thanks so much Sanford. Outputting the entire array is a great way to test! I should have thought of that After some more testing, it seems that this error is purely related to the fact I was testing using "Send Sample Email" instead of Single Flow Actions. Lesson learnt! Phew. Very glad to see some...
I'm having trouble accessing anything other than the first element in a Marketo Custom Object through email scripting. I've tested using a few leads, and here's the behaviour I'm seeing. All leads had at least three entries in the relevant Marketo Custom Object:* ${MarketoCustomObject_cList.get(0).f...
Thanks again Sanford.I've solved the URL parameters issue - it was because of a strange redirect on our website. I've removed the need for the redirect and it works just fine.However, the size of the array is still giving me trouble. This line:#set ($listlength = ${abandonedCart_cList.size()}) Alway...
Hi SanfordI might have to revise this slightly...So here's the code I used:#set ($listlength = ${List.size()}) #set ($listlength = $listlength - 1 ) Note I removed the line which sets the variables before I pass them through to the URL. I found using your solution above that using the notation $...
I'm having some trouble with an email script passing through a URL.#set($dossierURL = "www.gadventures.com/trips/${trips_cList.get($listlength).dossier}" )#set($imageLink = ${trips_cList.get($listlength).dossierImageURL} ) The image passes through just fine, but the link goes to something like th...