AnsweredAssumed Answered

Marketo token help

Question asked by Carly DeCoste on Jun 24, 2016
Latest reply on Jul 12, 2016 by Carly DeCoste

We are setting up a smart campaign to send an email to an email address that lives on an opportunity field in Salesforce. In order to do this, I set up a velocity script token to pull the email address from SF and will use a "send alert" flow step to send the actual email.


Does anyone have any ideas if this velocity script token looks correct? We have used velocity script tokens in the past but somehow it did not trigger the email. We are using a trigger campaign when a field on the opportunity is updated in SF. Not sure if the issue is with the token itself or with using a token in this "send alert" flow step.



#if ( (! ${TriggerObject.Referral_email__c} ) || ( ${TriggerObject.Referral_email__c == '') )


#set($referralemail = "")


         #set($referralemail = ${TriggerObject.Referral_email__c})