+ Start a Discussion
Hermann OuréHermann Ouré 

Grant a profile access to a record after field update

Hello,
I am using a standard object (Action Plan) and I would like to give access to records for a specific profile once I have updated a checkbox.
The org does not use 'Role' so using criteria based sharing rule is not an option.
I could probably use a trigger but I am not quite sure how to give visibility to the record once I have ticked the checkbox.
Does anyone have a sample code?
Thanks
 
Suchismita Mukherjee 7Suchismita Mukherjee 7
you have to  use apex managed sharing