top of page

Manual Sharing in Lightning Experience: Easy Fix!

Jun 10, 2019
1 min read

Hi! 😀

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):

/p/share/

AccSharingDetail

?parentId={!Account.Id}

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:

/p/share/

ConSharingDetail

?parentId={!Contact.Id}

For Lead, it would be:

/p/share/

LeadSharingDetail

?parentId={!Lead.Id}

The URL in case of a Custom object is going to be a bit different, and is of the following format:

/p/share/CustomObjectSharingDetail?parentId={!

ObjectApiName

.Id}

As simple as that! 😀

Thank you!

 
 
 

Comments


bottom of page