function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chriscwharrischriscwharris 

Disable standard related lists based on user and object?

In order to allow some functionality to work in a group of related objects I have had to give a user edit/read access via manual sharing to the top level record, otherwise they couldn't create a child record which has values totalled in rollup fields on the parent. The consequence of that is the user can see the "create/edit" actions on the standard related lists for Tasks and Activities etc. which are included on the parent object.

I can't stop the user accessing those objects globally as they need them when used on other objects, but on this custom object I don't want them to be able to create or edit records.

Any ideas?
venkat-Dvenkat-D
you can create trigger on task/event object to prevent this. its not good way but it works,