Hi Community!
I am (unsuccessfully) trying to create an email script that will populate the From & Reply-To Email Addresses for an upcoming campaign. The logic I am attempting to use is that if the lead is SFDC Type = Contact, it would populate a hard-coded email address, otherwise, it will populate the Lead Owner's Email Address.
This is what I have so far:
#if ( ${lead.SFDC_Type} == "Contact")
#else
${lead.Lead_Owner_Email_Address}
#end
What I am finding when I test this script is that my email address does show up for the SFDC Contacts, but the SFDC Leads isn't returning any values when I look at the email preview.
What am I missing in this code?
Solved! Go to Solution.
Sanford Whiteman - yes, I did double-check to ensure the field was imported into Velocity. What I didn't double-check was to ensure the lead I used for testing wasn't owned by a queue, hence the empty fields . Thank you for your quick reply!
That'll do it!