Hi all,
Quick question. We're switching from marketing cloud to Marketo. One of my colleagues are asking which tokens to use to replace this one pulled from marketing cloud:
Dear %%[IF NOT EMPTY(Salutation) THEN]%% %%Salutation%% %%[ELSE]%% Dr.%%[ENDIF]%% %%LastName%%
I do not think Marketo tokens can replicate this one above? The closest possible solution I can think of is a dynamic content?
Your thought is welcome.
Thanks,
Huihsing
Solved! Go to Solution.
You certainly can do this with a Velocity ("Email Script") token -- and so much more it will blow your mind. You need to search the Community for "Velocity" and also read the seminal posts at https://blog.teknkl.com/tag/velocity (while Velocity is a standard template language not unique to Marketo, these are the only Marketo-specific deep dives in existence).
In this particular case the Velocity equivalent is:
Dear ##
#if( !$lead.Salutation.isEmpty() )
${lead.Salutation} ##
#else
Dr. ##
#end
${lead.LastName}
But you should familiarize yourself with the wider world of Velocity rather than concentrating on only this one need.
You certainly can do this with a Velocity ("Email Script") token -- and so much more it will blow your mind. You need to search the Community for "Velocity" and also read the seminal posts at https://blog.teknkl.com/tag/velocity (while Velocity is a standard template language not unique to Marketo, these are the only Marketo-specific deep dives in existence).
In this particular case the Velocity equivalent is:
Dear ##
#if( !$lead.Salutation.isEmpty() )
${lead.Salutation} ##
#else
Dr. ##
#end
${lead.LastName}
But you should familiarize yourself with the wider world of Velocity rather than concentrating on only this one need.
Sandy - are they having you teach a Velocity class for University Day at Summit 2019, yet!? I will book front row seats if they do!!
Oh man, that would be fun. It's just so Rounding an integer to the nearest 100 or 1000 sometimes, my "Don't worry, you're gonna love this" opening number would have to be really amazing!
This is cool! Thanks a lot!
Unfortunately there isn't as in-depth of a guide for Velocity as there is for AMP. Check here for starters though: developers.marketo.com/email-scripting/