Question- Email Scripting- My Token- Currency | Community
Skip to main content
August 12, 2016
Question

Question- Email Scripting- My Token- Currency

  • August 12, 2016
  • 1 reply
  • 872 views

Hello

I have a mapping field set for premium. I want to use this field as a token in an email. However, when the field premium is populated, it is not in currency format, meaning it displays 1000 instead of $1,000.00

I am trying to follow the directions to create an email script. However, I’m a little lost. I name the token "Premium Dollar Amount".

Here is the script so far...

I was instructed to use NumberTool (VelocityTools 2.0-beta4 Documentation) 

I might be really far off. But please let me know if you have any advice, tips, or see what I am doing wrong.

Thank you for the help!

Katie

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

1 reply

SanfordWhiteman
Level 10
August 12, 2016

Yeah, you are pretty far off.   You might want to sit with someone for a little while to figure out how Velocity/VTL is structured.

#set ( $myPremiumDollarAmount = $number.currency($lead.Premium__c) )

Premium Dollaz: ${myPremiumDollarAmount}