You need to sign in to do that
Don't have an account?

Custom Email Button on Lead page.
Code:-
location.replace('/email/author/emailauthor.jsp?retURL=/{!Lead.Id}&p3_lkid={!Lead.Email}&rtype=00Q&p2_lkid={!Lead.Id}&template_id=00XA0000000RfyB&p5=&save=1');
Error:-
The value of the "p3_lkid" parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information.
location.replace('/email/author/emailauthor.jsp?retURL=/{!Lead.Id}&p3_lkid={!Lead.Email}&rtype=00Q&p2_lkid={!Lead.Id}&template_id=00XA0000000RfyB&p5=&save=1');
Error:-
The value of the "p3_lkid" parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information.
All Answers
Hi,
Even though I changed my code I get the same error.
location.replace('/email/author/emailauthor.jsp?retURL=/{!Lead.Id}&p3_lkid={!Lead.Id}&rtype=00Q&p2_lkid={!Lead.Email}&template_id=00XA0000000RfyB&p5=&save=1');
Did you ever get this to work? I have it working nicely on the Contact Object and used the same logic for Lead but my merge fields on the template do not populate (with the exception of the First Name). I am still trying to get it to work on the Lead object. Any more insight?
Thanks so much ...
(your na location)/email/author/emailauthor.jsp?p2_lkid={!Lead.Id}&rtype=00Q&
&p3_1kid={!Lead.Id}&template_id=(your specific template id)