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
sarvesh001sarvesh001 

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.

Thanks,
Sarvesh.
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 .