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
DesaiDesai 

Case should become read only when milestone is violated

Hi,

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 ?

 
ErikNelke1ErikNelke1
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.

AND( 

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

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