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.

 

 

Thanks

Sonam_SFDCSonam_SFDC

 

Hi SFDC ORg,

 

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

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_bulk_sharing_creating_with_apex.htm

 

 Just wondering if yougt a chance to read about Criteria based sharing rules which share records based on value of fields on the record - https://help.salesforce.com/apex/HTViewHelpDoc?id=security_sharing_cbs_about.htm&language=en

 

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