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
Michelle ArndtMichelle Arndt 

Custom Email button on Lead page stopped working

Our Email button stopped working not too long ago.  Can someone please help me?
Logic behind button:
location.replace('/email/author/emailauthor.jsp?retURL=/{!Lead.Id}&p2_lkid={!Lead.Id}&template_id=00X800000014h1J&p5=&p2_mod=JAM')
pconpcon
How did it "stop working?" Are you getting any errors when you click?  Have you monitored the debug logs to see if any errors occur?
Michelle ArndtMichelle Arndt
The body of the text cannot always be edited/used.  
pconpcon
On the times that it cannot be edited/used what is the current page URL?
Michelle ArndtMichelle Arndt
https://na28.salesforce.com/email/author/emailauthor.jsp?retURL=/00Q1A00001YOeyl&p2_lkid=00Q1A00001YOeyl&template_id=00X800000014h1J&p5=&p2_mod=JAM


It looks to be pulling the right template ID.