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
etessetess 

Record visibility based on opportunity stage

Is there a way to control a record's visibility to a user based on the Opportunity Stage? For my organization, I want to have Opportunities that are Closed Won visible to all, but if they are still in the potential stages (prospecting, etc), only the Opportunity Owner and their superiors should be able to view that. Happy to code whatever I need to make this happen, but would love some pointers on whether it is even possible and if so, strategy to achieve that.

 

Thanks!

Aaron2010Aaron2010

create Apex sharing.. or you can use criteria based sharing rules if your instance is upgraded to Spring 11.