+ Start a Discussion
Jon JaxJon Jax 

Email Template not displaying Merge Fields automatically from Custom Button url link

Hello,
    I am stumped! I have dug through the forums as well and nothing that I have found pertains to this specific issue, perhaps it is something really simple that I am missing. Any help would be great, here is my explanation: 

    I have built an email template with merge fields that loads perfectly on its own and linked it to a Custom Button via url link.  This does pull up the email template when the Custom Button is pressed but doesn't show any of the merge fields UNTIL I press the Select Template button and reselect the template that was specified in the url. I would like the merge fields to populate automatically and skip that extra step of having to reselect the email template. Any ideas?  Here is my url:

/_ui/core/email/author/EmailAuthor?&rtype=003&p3_mlktp=a13&p3={!Sales_Order__c.Name}&retURL=%2Fa13/o&p4=test@test.com&p5=test2@test2.com&p24={!Sales_Order__c.Tech_1_Email__c}&p6=Confirmation for {!Sales_Order__c.Job_Code__c}&template_id=00X17000000Qcqq



Thanks! 

 
Best Answer chosen by Jon Jax
Jon JaxJon Jax
@Megan Brooks I did, however I don't remember exactly how as it was something peculiar I had to trial and error with the URL hack method. Check out these articles- http://thewizardnews.com/2014/01/30/url-hack-revisted-auto-select-email-template-with-custom-button/
http://www.salesforceben.com/salesforce-email-url-hack-tutorial/

Best of luck!

All Answers

Ajay Ghuge 6Ajay Ghuge 6
Hi Jon,

I think you need to grab the fields HTML Id's and auto populate or set the values to the fields. For the lookup fields, you need to use lkid. This is will auto populate the values to the fields but for selecting the template you have to click select template button.

Let me know if you need additional information on this.

Regards,
Ajay
Megan BrooksMegan Brooks
Jon - Did you ever figure this one out? I am in the same boat and it's driving me crazy! Any help would be appreciated!
Jon JaxJon Jax
@Megan Brooks I did, however I don't remember exactly how as it was something peculiar I had to trial and error with the URL hack method. Check out these articles- http://thewizardnews.com/2014/01/30/url-hack-revisted-auto-select-email-template-with-custom-button/
http://www.salesforceben.com/salesforce-email-url-hack-tutorial/

Best of luck!
This was selected as the best answer