Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
How do you set the http/https link like this (outside of the token) if you don't know if the link is http or https?
Of course! Little things that mean a lot in regex world Thanks so much Sanford and hopefully this post helps a lot of people that are trying to figure out the same thing.
Code that always outputs the default value:#set( $greetingsBySalutationStart = { "Mr." : "Sehr geehrter Herr", "Mrs." : "Sehr geehrte Frau", "$" : "Sehr geehrte(r) Frau/Herr" }) ## ---- NO NEED TO TOUCH ANYTHING BELOW THIS LINE! ---- #set( $greeting = $greetingsBySalutationSt...
Yes, I use ${lead.LastName}. I was using test email but I just tried the real email and the result is the same. Not sure why I would even have to send an email - I should be able to preview the result by selecting "View By" lead which works for the long if/then Velocity statement.
Hi Sanford WhitemanI really want to implement your solution because it's scalable and the code is much cleaner than using if/then statements. Just like Gerard, I was able to make the long if/then version work but I can't make yours work (with the dictionary/regex) - it always outputs the default val...