Hi everyone,
We are wanting to dynamically change a calendar link in an email based on the lead owner. Do you have any suggestions on the best way to go about this?
Solved! Go to Solution.
That's a syntax error. You want:
#if( $lead.Lead_Owner__c == "Mark Heldt" )
<a href="https://calendly.com/mheldt">HERE</a>
#end
Also, please use syntax highlighting when posting code.
This is a standard use for a Velocity (Email Script) token. If you search my responses for "velocity" you'll see several examples of content switching based on owner.
Thanks Sanford. This is all pretty new to me and I turned out what I have below. It currently isn't working, so if you have anything else to point me in the right direction it would be great!
#if ${lead.Lead_Owner__c} == "Mark Heldt")
<a href="https://calendly.com/mheldt">HERE</a>
#end
#if ${lead.Lead_Owner__c} == "Riley Payne")
<a href="https://calendly.com/rpayne">HERE</a>
#end
#if ${lead.Lead_Owner__c} == "Michael Dillard")
<a href="https://calendly.com/michaeldillard">HERE</a>
#end
That's a syntax error. You want:
#if( $lead.Lead_Owner__c == "Mark Heldt" )
<a href="https://calendly.com/mheldt">HERE</a>
#end
Also, please use syntax highlighting when posting code.
Jarom, why isn't my answer "Correct" here? I showed that your Velocity has a syntax error (a missing left paren).
Iām as confused as you are with some of this suspicious activity (likes/helpful/correct) going on in certain discussion threads.
Use Velocity Script