I have custom object which is private where users share records with other users manually. I want to send email notification to the shared user whenever a record is shared to him. How can I achieve this ?

  • 5
    It always helps if you provide information about the research you have already done. What have you tried, what exactly can't you figure out... Commented Jan 14, 2013 at 7:09

1 Answer 1


You can query back the share records .share records will have userId with whom its shared and also the record Id so all you will need to do is use messaging.email to send to the respective users


Here is the document link you can use to get started .


Above on how to use outbound email functionality.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .