You need to sign in to do that
Don't have an account?
PSCR
Auto populate 'To' field on 'Send an Email' page when a particular template is selected.
Hi All,
I have a custom object (Sub__c) which has a lookup relationship to Contact. I have 'Send an Email' button in Activity History related list on the custom object record's detail page. When I click 'Send an Email' button, 'Send an Email' edit page will be displayed. Now, when I select a particular template, the field 'To' should auto populate with the contact name.
Please let me know how to achieve this. Thanks!
I have a custom object (Sub__c) which has a lookup relationship to Contact. I have 'Send an Email' button in Activity History related list on the custom object record's detail page. When I click 'Send an Email' button, 'Send an Email' edit page will be displayed. Now, when I select a particular template, the field 'To' should auto populate with the contact name.
Please let me know how to achieve this. Thanks!
Please find the sample code below for similar issue and modify the code as per your requirement which allows you to surpass the challenge. For more information check here:
- https://developer.salesforce.com/forums/?id=906F00000008rTJIAY
- http://developer.force.com/cookbook/recipe/creating-email-templates-and-automatically-sending-emails
Please mark this as best answer if the information helps.Best Regards,
Nagendra.P
But my requirement is- I have a lot of email templates in the system. If I select a particular email template called 'ABC', only then the 'To' field must be auto-populated.