Tokens and Commas in Email | Community
Skip to main content
October 22, 2014
Solved

Tokens and Commas in Email

  • October 22, 2014
  • 3 replies
  • 1984 views
I had this problem and followed the suggestion for the answer but did not find the answer satisfactory. Does anyone have a clearer or better explanation for how to do this?

Problem: We are using tokens in an automated email that we send out via a smart campaign. The token is used in the saluation:   Hi {{lead.First Name:default=}}. We have set the default value for this token to [blank] because we do not want Marketo to enter a value in its place; therefore, .

We would like to use a comma in the salutation: "Hi Joe,". The issue we have is with the token. Because we have inserted a space between the word "Hi" and the token, if we send the email to a lead that does not contain a first name field value, the salutation will appear as "Hi ,". Is there anyway to remove this space between the text besides the token and the actual token, when the token has to insert the default value? Would using an "IF" statement in one of the Flow steps fix this issue?


Suggestion: https://community.marketo.com/MarketoArticle?id=kA050000000Kyp3CAC

Thanks in advance!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dory_Viscoglio
Hi Eitan, as Josh mentioned, there isn't a super-simple way to do this. Another thing that we've done is Hi {{lead.first name:Deafult=there}}, so if they don't have a first name it shows "Hi there,"

3 replies

Josh_Hill13
Level 10
October 22, 2014
You might be able to do this with Velocity script. You can also do this by putting in a default value like "Colleague".

You can also use the smart list to block anyone w/o a first name:

First Name IS NOT EMPTY.
Dory_Viscoglio
Dory_ViscoglioAccepted solution
Level 10
October 22, 2014
Hi Eitan, as Josh mentioned, there isn't a super-simple way to do this. Another thing that we've done is Hi {{lead.first name:Deafult=there}}, so if they don't have a first name it shows "Hi there,"
October 22, 2014
Josh - thanks for the suggestion but sounds a bit complicated for me...
Dory - that's very creative! I think I will try that