Skip to main content
Michael Dely ha preguntado en #Collaboration
Trying to automate an email template to go out to clients and the coding is not picking up the contact's name.  It just has nothing after the "Dear."  I enclosed a screenshot showing my code as well as how the email looks (highlighted in orange).  Can someone please point me in the right direction whether it is in this forum or elsewhere?  Really appreciate it!    

 

Thanks, Michael. 

 

VisualForce Question - Automated Email Template

 

User-added image
6 respuestas
  1. 24 jul 2018, 5:17

    Hi Michael,

    Sorry for the delay, had hockey tonight :)

     

    I went ahead and tried this out, here's what I found:

     

    The original way you had it set up worked when I just ran the test straight from the Email Template page but didn't work as part of a workflow.

    I changed it to this:

     

    Hi Michael,Sorry for the delay, had hockey tonight :) I went ahead and tried this out, here's what I found: The original way you had it set up worked when I just ran the test straight from the Email T

     

    It now sends the email with the Contact details merged in successfully and references the running user's email as the "reply to". If you wanted to send it from the contact owner, I believe you could change it to {!relatedTo.Owner.Email} or pull it down into a formula field on the contact record to make the merge a little cleaner.

     

    I hope that helped!

     

    John