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

Case should become read only when milestone is violated


We need to make the case record readonly when milestones are violated. We though of using Milestone status field in validaiton rule but that field is not availble as it a OOTB special field.

So how do we do this req ?

We did something like this for Opportunites. Only Admins can edit a closed bid . We also added some super users to this rule. I took them out so it was cleaner.


$Profile.Name <> "System Administrator-2012" , 

ISPICKVAL( PRIORVALUE(StageName) , "Closed Cancelled") , 
ISPICKVAL( PRIORVALUE(StageName) , "Closed No Bid") , 
ISPICKVAL( PRIORVALUE(StageName) , "Closed Won") , 
ISPICKVAL( PRIORVALUE(StageName) , "Closed Lost")),true )