Need Help - My Velocity Scripted Token Not Allowed
I've been trying to figure out why my token containing velocity script is prompting an error message in my email when attemptimg to "Approve and Close". The script within the token is supposed to take the first Name token reference and Capitalize the name using the following script:
#set($firstName = $lead.FirstName)
#set($formattedFirstName = $firstName.toLowerCase().substring(0,1).toUpperCase() + $firstName.toLowerCase().substring(1))
${formattedFirstName}No matter how I try to implement the script, wheather directly into the email (breaking it from the template) or applying the script to a custom token. Does anyone have any input into why this is happening?