[SalesForce] Insufficient privileges in Send Email

"Contacts in Salesforce which do not have an Account are considered 'private'. Such Contacts are only visible to an Administrator or the Contact Owner. If a private Contact has a related Case, and a user other than an Administrator or the Owner of that Contact tries to send an email from the Case, the user will get an Insufficient Privileges error."

-CTTO

Can I override the Send an Email button and Remove the automatically filling up of 'To' field.

Best Answer

You can not override the send email button but you can replace the send email button and hack the URL.

Create new custom button and replace the standard send button on that specific pagelayout only. Provide the following url (p2_lkid is empty).

https://company-ed.my.salesforce.com/_ui/core/email/author/EmailAuthor?p2_lkid=

You can format the url based on the user logged. So, in case logged in user is admin or owner, you can provide contact id to be pre-filled as below:

https://company-ed.my.salesforce.com/_ui/core/email/author/EmailAuthor?p2_lkid={!IF(OwnerID=$User.ID,recordID+'&rtype=003','')}

This will not work in lightning. However, I didn't try.

Related Topic