Velocity Scripting to Display a Contacts Opportunity Owner
Hi All,
I am trying to create a email velocity script to just show the opportunity owners name in an email as a signature. So basically I am just trying to set the variable to be the actual value on the contacts record. I have tried (see below) but I keep getting an error. Can anyone tell me what I am doing wrong. Thanks.
#set ($opptname = ${OpportunityList.get(0).Oppty_Owner_Email__c})
#if($opptname.equals(""))
Account Rep
#else
$display.(Oppty_Owner_Email__c)
#end