-
Re: Customize Email Tokens
Sanford Whiteman Dec 5, 2018 7:28 PM (in response to Huihsing Kiang)1 of 1 people found this helpfulYou 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.
-
Re: Customize Email Tokens
JD NelsonDec 6, 2018 10:14 AM (in response to Sanford Whiteman)
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!!
-
Re: Customize Email Tokens
Sanford Whiteman Dec 6, 2018 10:25 AM (in response to JD Nelson)Oh man, that would be fun. It's just so ridiculously tricky sometimes, my "Don't worry, you're gonna love this" opening number would have to be really amazing!
-
-
Re: Customize Email Tokens
Huihsing Kiang Dec 10, 2018 11:35 AM (in response to Sanford Whiteman)This is cool! Thanks a lot!
-
-
Re: Customize Email Tokens
Jay Jiang Dec 6, 2018 3:32 PM (in response to Huihsing Kiang)1 of 1 people found this helpfulUnfortunately 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/