sharing button in lightning - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Harald ProkschHarald Proksch 

sharing button in lightning

We have created a custom object on which we  use the Sharing button to allow only manually added users to view this records in addition to the owner.
In Lightning Experience the button is not available and the documentation says
create new buttons in Lightning Experience using SOAP API sharing objects like customObject_Share in a Visualforce page, and by creating a Lightning action.
Does anyone have an example for  this?
Don GlassenDon Glassen
There was a component recently published on the AppExchange by Salesforce Labs. Does this meet the need? https://appexchange.salesforce.com/listingDetail?listingId=a0N3A00000EFp0ZUAT
Harald ProkschHarald Proksch
Yes, that would help
Christian EichhornChristian Eichhorn

Maybe you could anyway support the Idea "Sharing button in Lightning Experience"

https://success.salesforce.com/ideaView?id=0873A000000LmluQAC

Deja BondDeja Bond
So, I am having some trouble with the lightning sharing action, The User needs to refresh the case record page once the sharing button popup is closed, hence after I add a permission and go back to the record home page the lightning sharing action doesn't work
Kaylie FinnisKaylie Finnis
Yes please still vote on the issue Idea https://success.salesforce.com/ideaView?id=0873A000000LmluQAC

Short term fix for anyone who is stuck:

Create a custom detail page button on the object. Save & add to page layout in the "Salesforce Mobile and Lightning Experience Actions"

Contact: https://YOUR_CLASSIC_ORG_URL/p/share/ConSharingDetail?parentId={!Contact.Id}

Custom Object: https://YOUR_CLASSIC_ORG_URL/p/share/CustomObjectSharingDetail?parentId={!OBJECT_API_NAME.Id}

your classic org url you can grab by switching to salesforce classic view. it usually looks something like:  "https://companyname.my.salesforce.com" 
Nazareena SulthanaNazareena Sulthana
Tried short term fix but the issue is top of the page it shows setup share setting and setup menu in the left panel.How to avoid these things used custom button and tried URL
https://YOUR_CLASSIC_ORG_URL/p/share/OppSharingDetail?parentId={!Opportunity.Id}
Alex EdelsteinAlex Edelstein
This unofficial Flow-based solution makes it easy to add a manual sharing button to any record page:

https://unofficialsf.com/adding-a-manual-sharing-button-to-records-with-lightning-flow/

It may be useful in the time until this feature is released as core functionality.