Today we are going to discuss an easy workaround for Manual sharing in Lightning Experience. We can also set up Manual sharing in Lightning using Flows.
This solution is a bit more simpler than the flow based solution but doesn’t offer much flexibility.
So let’s roll!
When sharing a record manually in Salesforce Classic, we are directed to a URL when the ‘Sharing’ button is clicked. So the idea is to create a URL button with the URL of standard Sharing button.
So, all we need to do is create custom URL button on the object with the following URL(format):
But there is something important to note here. The ‘AccSharingDetail‘ in the URL will vary according to the object on which you are creating the button.
For example, the above URL will work for Account object.
Similarly for Contact object, the URL would be:
For Lead, it would be:
The URL in case of a Custom object is going to be a bit different, and is of the following format:
As simple as that! 😀