AnsweredAssumed Answered

velocity script troubleshoot needed?

Question asked by 1fbb8c37c6ac8ce1fdab50469300809d1ef1a1d6 on Feb 27, 2017
Latest reply on Feb 27, 2017 by Sanford Whiteman

Hello community,

 

As I am working on my script, some weird things happened when I tested the same script. Yesterday it didn't work, and the $ showed up in the email. Today morning it worked just fine. And 10 minutes later it is not working and showing $ again. Anyone can tell me why it is so unreliable?

 

Here is my script (very simple)

 

#set ($propcompany = ${lead.Company})

#if($propcompany.equals("Unknown")||$propcompany.contains("?")||$propcompany.isEmpty())

What can your company unwrap this year?

#else

#set($greeting = $display.capitalize($propcompany))

#set($greetll = "What can $greeting unwrap this year?")

$greetll

#end

 

Anyone else experiencing similar behavior?

 

Thank you!

Outcomes