+ Start a Discussion
agendabnagendabn 

Custom Buttons Not Working

I created some custom buttons for my Opportunities tab. For some reason they're not working.

 

My "Send NY Invite" button is giving me this error:

Unable to Access Page

The value of the "template_id" 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. 

 

and my "Send Vegas Invite" button isn't recognizing the Contact ID and putting it in the "To" field of the email.

 

I compared both buttons with the working "Send LB Invite" button and it looks like it matches, so I'm not sure why it's not working.

 

Working LB button code:

/_ui/core/email/author/EmailAuthor? 
p2_lkid={!Opportunity.Primary_ContactId__c} 
&rtype=003 
&p3_lkid={!Opportunity.Id} 
&template_id=00Xd0000000XAm6 
&retURL={!Opportunity.Id}

 

Not working NY code that prompts the error mentioned above:

/_ui/core/email/author/EmailAuthor? 
p2_lkid={!Opportunity.Primary_ContactId__c} 
&rtype=003 
&p3_lkid={!Opportunity.Id} 
&template_id=000Xd0000000XB4j 
&retURL={!Opportunity.Id}

 

Not working Vegas code that doesn't recognize the Primary Contact:

/_ui/core/email/author/EmailAuthor? 
p2_lkid={!Opportunity.Primary_ContactId__c} 
&rtype=003 
&p3_lkid={!Opportunity.Id} 
&template_id=00Xd0000000XG9s 
&retURL={!Opportunity.Id}

AdrianCCAdrianCC

Check the end of each line for empty spaces. Maybe that's the culprit?!

agendabnagendabn
I deleted all of the extra spaces and it's still giving me the same error for NY and not recognizing the Primary Contact for Vegas.

Help!
--

Brittney Nelson
Show Manager
AGENDA
O. 213.223.5111
C. 562.221.5399

www.agendashow.com

110 E 9th St Suite B413
Los Angeles, CA 90079

Instagram: @brittnen
Twitter: @AgendaShow
Cloud CredenceCloud Credence

Hi,

 

Please try the following.

 

1. Instead of having the url in multiple lines, please keep them all in single line next to each other(at least for testing purpose).

 

2. Place a custom link, instead of a custom button.(for testing purpose).

 

3. click on the link and see whether it works.

 

4. If not, you can get the url to which it is redirected to, please analyze it.

 

5. If you still cannot resolve that, please post the url in the forum here.

 

Best Wishes,

agendabnagendabn
This is the new error that I now receive:
https://na14.salesforce.com/_ui/core/email/author/EmailAuthor?p2_lkid={!Opportunity.Primary_ContactId__c}&rtype=003&p3_lkid={!Opportunity.Id}&template_id=000Xd0000000XB4j&retURL={!Opportunity.Id}


Unable to Access Page
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.

--

Brittney Nelson
Show Manager
AGENDA
O. 213.223.5111
C. 562.221.5399

www.agendashow.com

110 E 9th St Suite B413
Los Angeles, CA 90079

Instagram: @brittnen
Twitter: @AgendaShow
Justin DoverJustin Dover
What was the solution for the above qeustion or the form link. I am having the same issue. 

And what makes mine worse, is it was work two weeks ago. And i have tested the email temp but manually sending one with no error. So it has to be the button URL set up. 

/_ui/core/email/author/EmailAuthor?rtype=003&p2_lkid={!Opportunity.JobContactId__c}&p3_lkid={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}&p5={!$User.Email}&template_id=00X41000000WGlQ;