Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Great news - the latest release of Foundation won't strip out custom attributes like "mktoModule". This makes life a lot easier.
I tried that yesterday.. I think it went something like $i = firstname.length - firstname.lengthcharAt(i)But are you sure that's the issue - as above, I can send in an actual campaign, and the preview works. It is just the email approval and sample send that fails.
Well, I was able to get it to send in an actual campaign send.But the email won't approve and the error is:Validation Error approving testttt.kefe — An error occurred when procesing the email Rendered_Email_Velocity_Error_Area_?!Invocation of method 'charAt' in class java.lang.String threw exception...
Yes, I did this just recently (but probably not very well).It looked like:1. Get the authentication token (identity).2. Lookup an email address and return a lead ID.3. Get a paging token based on a date4a. Figure out which activities you want from the Activities List4b. Get the Lead Activities with...
Weird.. your syntax doesn't look right. Shouldn't it contain the braces? #set ($fi = ${lead.FirstName.toLowerCase().charAt(0)})$fiEven with your syntax, I'm still finding the email won't approve.
I think you're referring to "escaping", which means that you don't want the "$" to be swallowed by the Velocity engine. In this case, I don't think you need to escape the $ symbol.But if for some reason this isn't working:
Your next invoice is $${lead.invoice1due}
You could try this:#set ($d = "$")You
...Did you try that in the preview or in the actual email send?It still errors at my end.
hmm. I think it's a bug Kenny ElkingtonIt works in the email preview - according to Email Scripting » Marketo Developers anything that works in the email preview is supposed to work in an actual email, but in this case it doesn't. Sorry.
It's as simple as..#set ($x = ${lead.FirstName.toLowerCase()})$x.charAt(0)
I don't think it works with Outlook 2010, and possibly others. If you try it in Gmail or another client, it will probably work as expected. The takeaway is to not use it. A workaround might be to go to Youtube Thumbnail Generator and just do an image & link.