Hi,
We send out emails with dynamic content which is segmented by 5 languages.
I need an address in the email to also be dynamic (based on the location of the sales team) and this has no relationship to the 5 language segments used.
What would be the best way to go about this?
Thanks in advance for the help.
Solved! Go to Solution.
If there's no applicable segmentation, nor any new segmentation that could be created to fill this need, then you have two basic choices:
Velocity basically picks up where segmentations leave off, and while it requires development skills, it is vastly more powerful than segs alone.
You might check my Velocity-related replies here and on the posts on my blog: http://blog.teknkl.com/tag/velocity.
If there's no applicable segmentation, nor any new segmentation that could be created to fill this need, then you have two basic choices:
Velocity basically picks up where segmentations leave off, and while it requires development skills, it is vastly more powerful than segs alone.
You might check my Velocity-related replies here and on the posts on my blog: http://blog.teknkl.com/tag/velocity.
Thanks for the help, Sanford.
I believe that velocity is definitely the way to go!
This is how I've scripted the token, but I am unsure how to incorporate the html for address A and address B within the token to account for line breaks etc.
Thanks in advance for the input!
Never mind! I didn't realize I could just copy the html straight into the token's script!
This is amazing thank you
Actually this code isn't doing what you think it is...
#if( $variable == "string1" || "string2" || "string3" )
will only be true if $variable == "string1". I think you're thinking of syntax from other languages (like the coalescing || in JavaScript). In Velocity, this is going to perform the first comparison, then check to see if the string literals "string2" and "string3" are truthy. String literals are never truthy, though.
Use something like this instead:
#set( $salesTeamsAddressA = ["JH","JRP","LJ"] )
#if( $salesTeamsAddressA.contains($lead.Sales_Team__c) )
Address A
#else
Address B
#end
Hi Sanford,
I'm not sure if you meant to mention me here.
-Tom
Also, please move your question to Products. "Community" here refers to the Marketo Nation website itself -- and yes, this is confusing.