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
SFDC orgSFDC org 

Trigger help needed

I want to write a trigger for giving permissions only to 2 users based on the record type and channel in account , Please guide me how to do this.








The following article talks about Apex Managed Sharing with a code snippet, worth giving a read:


 Just wondering if yougt a chance to read about Criteria based sharing rules which share records based on value of fields on the record -


Wondering if this could be a possible option if you do not wish to put in code.