An administrator needs to enforce a data quality requirement on the Case object. Whenever a Case record status is set to 'Closed', the Resolution_Notes__c custom text field must not be left blank. Which validation rule formula correctly enforces this requirement?
- AND(ISPICKVAL(Status, "Closed"), ISBLANK(Resolution_Notes__c))Cevap
- BAND(ISPICKVAL(Status, "Closed"), NOT(ISBLANK(Resolution_Notes__c)))
- CAND(RecordType.Name = "Closed", ISBLANK(Resolution_Notes__c))
- DAND(ISPICKVAL(Status, "Closed"), ISBLANK(Lead.Resolution_Notes__c))
Cevap
The correct validation formula is AND(ISPICKVAL(Status, "Closed"), ISBLANK(Resolution_Notes__c)).
The correct expression combines ISPICKVAL for evaluating the picklist field 'Status' with ISBLANK for checking whether 'Resolution_Notes__c' contains data. When both conditions are met, the formula evaluates to TRUE, triggering the validation error as intended.
Adım Adım Çözüm
Anahtar Kavram
Validation Rule Logic and Null Evaluation using ISPICKVAL and ISBLANK