Question- Email Scripting- My Token- Currency

Anonymous
Not applicable

Question- Email Scripting- My Token- Currency

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...

pastedImage_2.png

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

pastedImage_4.png

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

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Question- Email Scripting- My Token- Currency

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}