merge cases button - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Jill KnudsonJill Knudson 

merge cases button

Hi all,
So in my effort to provide certain users the ability to merge cases, in Lightning, now everyone can see the merge cases button, particularily in the recent cases list view.   
The users that I want to be able to merge have CRED on Cases and modify all
The uses I do NOT want to be abe to merge have CRE on Cases and No modify all access.
How can I hide the  merge case button from the users I do not want to have the ability to merge?  My understanding was to see the merge cases button you needed Modify all on cases but clearly I am incorrect.  Your assistance is much appreciated.
Jill
Best Answer chosen by Jill Knudson
Amnon KruviAmnon Kruvi
Hi Jill, 

Modify all on cases doesn't play a role in case merge as far as I can tell. However, the permission to edit and delete do. If you set case merge to delete the duplicate case after merge, then your users would need the delete permission in order to use it (https://help.salesforce.com/articleView?id=cases_merge_from_list_view.htm&type=5&sfdcIFrameOrigin=null).

Unfortunately, if you don't want to delete the duplicate case, then your users have all the permissions they need to merge them, and will therefore see the button. As far as I know, there is no mechanism to selectively hide it.

All Answers

Trevor KriegTrevor Krieg
go into your visual force page and restrict it based upon roles or record type. This way only the users you want can do what you want then to do. 
Jill KnudsonJill Knudson
Hi Tevor, but it's just a standard button on a standard default list view not on a visual force page.
Amnon KruviAmnon Kruvi
Hi Jill, 

Modify all on cases doesn't play a role in case merge as far as I can tell. However, the permission to edit and delete do. If you set case merge to delete the duplicate case after merge, then your users would need the delete permission in order to use it (https://help.salesforce.com/articleView?id=cases_merge_from_list_view.htm&type=5&sfdcIFrameOrigin=null).

Unfortunately, if you don't want to delete the duplicate case, then your users have all the permissions they need to merge them, and will therefore see the button. As far as I know, there is no mechanism to selectively hide it.
This was selected as the best answer