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
TechEd_ProgrammerTechEd_Programmer 

JavaScript OnClick Custom Button in Console

All -

I am trying to create a custom button for the Sales console. This button is calling a specific E-Mail Template and prepopulating data.

I know how to leverage the JavaScript for Custom Buttons that bring up web pages or links for the Salesforce Console, but when I try to combine that functionality with the JavaScript to auto select a template for e-mail I get the following error:

Unexpected token ILLEGAL

Here is my code......what am I missing here?

srcUp('
         location.replace('
                /email/author/emailauthor.jsp?retURL=/{!Case.Id}&p3_lkid={!Case.Id}&rtype=003&p2_lkid={!Case.ContactId}&template_id=00XG0000001bHA9/
         ');
    ');