+ Start a Discussion

How send an alert mail on manual sharing of opportunity

Hi ,

I want to send an email alert to user that to whom this opportunity is shared.

Can any one help me out for this how to achive this.

Shashikant SharmaShashikant Sharma
I think you have to override manual sharing button and share the record with Apex like in this example : https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_accountshare.htm
After sharing you could write code to send email .