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

How can I restrict the records only Edit/View by the owner?

I wanted to edit the record and viewable by the record owner and admin and also based on recordtypes.

Also I want to share a particular record type to everyone from contact and restrict another record types to others.


Can I acheive this without creating sharing rules?

If so how?


Please let me know steps.




Abhinav GuptaAbhinav Gupta

you can use sharing rules for sure, mostly the point and click sharing i.e. or user managed should work. In case your requirements are complex, you can use Apex managed sharing.


Here is an awesome guide on Sharing  :