Question
Fetch Opportunity owner in Email Script token
Hi there,
I am trying to fetch the opportunity owner from opportunities tied to a person record in Marketo Database. I am trying to use Velocity but it is not working for me. Can someone let me know what am I doing wrong?
#set( $opportunity = $lead.Opportunity )
#if( $opportunity && $opportunity.OpportunityOwnerName && $opportunity.OpportunityOwnerName != "")
Opportunity Owner Name: $opportunity.OpportunityOwnerName
#else
Opportunity Owner Name: Not available
#end