3 Replies Latest reply on Aug 16, 2016 12:04 PM by Sanford Whiteman

    Email Scripting Troubleshooting

    Valerie Armstrong

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


      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?