Skip to main content
Michael Dely 님이 #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개
  1. 2018년 7월 24일 오전 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