Email Scripting Troubleshooting | Community
Skip to main content
Valerie_Armstro
Level 9
August 12, 2016
Solved

Email Scripting Troubleshooting

  • August 12, 2016
  • 1 reply
  • 2577 views

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")

valeriearmstrong@upserve.com

#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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

You have the Lead_Owner_Email_Address imported into Velocity?

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
August 12, 2016

You have the Lead_Owner_Email_Address imported into Velocity?

Valerie_Armstro
Level 9
August 16, 2016

@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!

SanfordWhiteman
Level 10
August 16, 2016

That'll do it!