function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RivoRivo 

Calling all custom button experts

 The situation is as follows:

 

I have created an email template that contain within the body, contact fields i.e. First /  Last Name, Email address, phone, cell etc.

 

Within the Contact page I have added a Custom button that calls this template, the idea being that a user can email a contacts details to another individual.

 

The problem is that the URL I am using (see below) is automatically populating the "TO" field with the email address of the contact.  

 

https://emea.salesforce.com/email/author/emailauthor.jsp?p2_lkid={!Contact.Id}&retURL=/{!Contact.Id}&template_id=00X20000001MLZY

 

Obviously there is no point in emailing the contact his or her own contact details, so users will have to delete / overwrite the contents of the TO field.

 

Is there a way of leaving the TO field blank, yet populating the relevant details within the body.

Ispita_NavatarIspita_Navatar

In order to set the "To" field to blank you have to use:-


1.p2_lkid=%20
2. But that will not populate the body with necessary contact details.
3. So for that do this set:- p7=={!Contact.FirstName}+'-'+{!Contact.LastName}


Try the following hope this solves your problem:-
https://na4.salesforce.com/_ui/core/email/author/EmailAuthor?p2_lkid=%20&p7={!Contact.FirstName}+'-'+{!Contact.LastName}&retURL=/{!Contact.Id}&template_id=00X20000001MLZY

 

RivoRivo

Brilliant, thanks v. much for this.