Is there a way to prevent a user from replying to an email on a Case record, or perhaps not seeing the email related list, if they're not the case owner?
(to force them to take case ownership before they can reply)
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
I figured out how to do this.
First, I created two Record Types for Cases. One called "Hidden Details", and the other "Full Details".
Second, I created two different Layouts for Cases. One Layout has a bunch of the information removed, including the Emails related list; and the other layout is our full case layout.
Third, I assigned the layouts to their respective Record Types.
Fourth, I created a Process in Process builder, that for every time a record is created or edited, if the owner is a Queue, the Record Type becomes "Hidden Details" and if the owner is ever a User, the Record Type becomes "Full Details" .. this is done using RecordTypeID field.
NOTE 1: To be able to tell whether the Case Owner is a Queue or User, this formula should be used:
LEFT([Case].OwnerId,3) = "00G" to check if owner is a Queue and
LEFT([Case].OwnerId,3) = "005" to check if the owner is a User. Because the ID of Queues always begins with 00G and the ID of regular users always begins with 005.
NOTE 2: To get Record Type IDs, open up the Record Type such as when you go to edit it, and look for the ID string in the website URL.
NOTE 3: Do note that you cannot have one "Hidden Details" Record Type and your Master record type (the record type you get if you don't use Record Types), and that you will need to create a Record Type for your new default record type, ie: my "Full Details" Record Type.