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
Kathleen Munetz-Vasquez 3Kathleen Munetz-Vasquez 3 

Custom send email button in Salesforce not working.

Trying to create a Salesforce button but it is not working, this is the error message I am receiving: Also below is the code as well.

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. 


https://cs21.salesforce.com/email/author/emailauthor.jsp?retURL=/{!Webform_Inquiries__c.Name}&p2_lkid={!Webform_Inquiries__c.OwnerFullName}&p3_lkid={!Webform_Inquiries__c.Name}&p7={!Webform_Inquiries__c.Full_Name__c} %20}&rtype=003&template_id=00X2A000001v2uc &new_template=true
Best Answer chosen by Kathleen Munetz-Vasquez 3
Taha Syed | SalesforceTaha Syed | Salesforce
p3_lkid only accepts the ID of the record. You are trying to pass the Name.
Use p3_lkid={!Webform_Inquiries__c.Id}

All Answers

Taha Syed | SalesforceTaha Syed | Salesforce
p3_lkid only accepts the ID of the record. You are trying to pass the Name.
Use p3_lkid={!Webform_Inquiries__c.Id}
This was selected as the best answer
Taha Syed | SalesforceTaha Syed | Salesforce
Parameter Name/ Parameter Value
p2_lkid - To (can be Contact or Lead Id)
p3_lkid - *Related To Id
p4 - CC
p5 - BCC
p6 - Subject
p23 - Email Body
p24 - Additional To
Template_Id - Salesforce email template Id
retURL - *Redirection page when cancel button is clicked
Kathleen Munetz-Vasquez 3Kathleen Munetz-Vasquez 3
It works! Thank you Taha M Syed!