0

My validation rule when Stage Name is = Closed-Won I want no user will be able to update to change the Close Date expect users who have this custom permission $Permission.Change_Closed_Date_after_Closed_Won.

1 Answer 1

1

That's actually pretty easy:

AND(NOT($Permission.Change_Closed_Date_after_Closed_Won), ISCHANGED(StageName), ISPICKVAL(PRIORVALUE(StageName),'Closed-Won'))

If the stage was closed won, and the status has changed, and the user does not have the permission, display the error.

4
  • If I want to add more fields on this validation rule so users can't make updates after the stage is closed-won. Field examples like Amount, New_RAB__c, Existing_RAB__c.
    – Andre g
    Commented Jun 29, 2020 at 14:43
  • @Andreg You would use multiple validation rules, one per field. Do not try to cram all the fields into a single rule.
    – sfdcfox
    Commented Jun 29, 2020 at 14:45
  • ok makes sense. Can you help me? When an opportunity is stage closed-won, the user doesn't have $Permission.Change_Closed_Date_after_Closed_Won and they try to change field New_RAB__c.
    – Andre g
    Commented Jun 30, 2020 at 13:15
  • Never mind. I got it.
    – Andre g
    Commented Jun 30, 2020 at 14:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .