SOLVED

Re: Email Scripting Troubleshooting

Go to solution
Valerie_Armstro
Level 10 - Champion Alumni

Email Scripting Troubleshooting

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.

pastedImage_2.png

What am I missing in this code?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Email Scripting Troubleshooting

You have the Lead_Owner_Email_Address imported into Velocity?

pastedImage_0.png

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Email Scripting Troubleshooting

You have the Lead_Owner_Email_Address imported into Velocity?

pastedImage_0.png

Valerie_Armstro
Level 10 - Champion Alumni

Re: Email Scripting Troubleshooting

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 - Community Moderator

Re: Email Scripting Troubleshooting

That'll do it!