If one token is missing to use another one instead | Community
Skip to main content
August 15, 2014
Question

If one token is missing to use another one instead

  • August 15, 2014
  • 4 replies
  • 1360 views
Hello!!

I am preparing some emails that will be sent using a token lead first name. However, in my lead database I have several leads with a missing name. How can I set up, if the lead's first name is missing, to use a token for a company name? 

Thank you soooo much! 

Ana 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

August 15, 2014
You could clone your campaign and email asset and work from two campaigns........In the first campaign your smartlist will have a filter saying FirstName is not empty..............this wont need a new token

In the second campaign have a smartlist filter saying FirstName is empty.....and in your cloned email change the token to Company Name

Easy fix, everyone gets an email with either first name or company name visable!
August 15, 2014
You can not use tokens inside tokens I'm afraid. So you can't do {{lead.First name:default={{company.Company Name}}}}. And can't make else/if statements either. But what you can do is create a new template and use email scripting. To create it. http://developers.marketo.com/documentation/email-scripting/
August 15, 2014
I think a better idea is to create a formula field in the admin section of Marketo. Call it Letter Salutation or something along those lines. And start off with IF First Name is not empty, then Hello {{lead.First Name}} ... If Last Name is not empty, then Hello {{lead.Last Name}} ... If Full name is empty, then Greetings.

That way you go ahead and put the comma directly into the field and prevent any confusion with how that will work. Then all you need to do is add 

{{lead.Letter Saluation}} to the top of your emails.
August 15, 2014
Adam is a wizard. Love it.