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
Arunkumar KathirArunkumar Kathir 

Make accounts invisible based on picklist values

How to make some accounts invisible based on a Picklist value.

We have a picklist field in Accounts having values as Working and Retired.

Retired accounts should not be visible to all Users except Admins.
Prabu MahalingamPrabu Mahalingam
Hi,
You have to write custom sharing rules for account in a Trigger (After Update, After insert).

check the following link
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_bulk_sharing_creating_with_apex.htm

Cheers..!!