One of the common things people do in Dynamics365 is share a record such as Lead, Opportunity etc. with other users. So how does a user know that a record has been shared with him\/her? This was asked by one of our customer\u2019s. They said \u201cI cannot call and tell that I have shared a lead with you\u201d. Since emails are an integral part of most users\u2019 days, it makes sense that Dynamics365 should have the capability to send an email notifying the user that record has been shared with him\/her. But sadly there was no out-of-box configuration that allows such notification in Dynamics365. To solve this, we had to look at our good friend \u2018plugin\u2019, so we decided to write a plugin in order to send an email notification when a record is shared. Sending email was the easy part but there was very little information that we found on which event to trigger the plugin and how to get the details of users with whom the record is being shared. Solution Create a plugin project as you would normally do. We used the Dynamics365 Developer toolkit to do the same. Whenever a record is shared \u201cGrant Access\u201d message is fired so check if the context message is Grant Access (i.e. plugin is executed for \u2018Grant Access\u2019) Get the user who has shared the record by checking the context under which the plugin is running. Now the tricky part \u2013 Get the user with whom the record is being shared. This is found under the \u201cPrincipal Access\u201d parameter in the plugin context. In our case as Lead was being shared so get the Lead record that is being shared. Now we have the user who shared the record, user with whom the record is shared and the record that is shared, so you can now simply create an email message and send email notification from plugin. Although simple but it is a really handy solution for a common requirement.So that\u2019s it from Soluzione. This is our first blog and hope you like it. If you want additional services then check out Soluzione Digital Services.