Universal Containers implemented a validation rule on the Opportunity object to enforce data quality. The goal is to require a custom field, Discount_Approval_Code__c, whenever Discount_Percentage__c is updated to a value greater than 15% (0.15). However, administrators notice that when users update unrelated fields (such as Description) on existing records where Discount_Percentage__c was already set to 20% in the past, the system blocks the save and displays a validation error.
The current validation rule formula is:
AND(Discount_Percentage__c > 0.15, ISBLANK(Discount_Approval_Code__c))
Which formula modification correctly prevents the validation error from triggering during edits to unrelated fields while still enforcing the requirement when the discount is modified?
- AND(Discount_Percentage__c > 0.15, ISCHANGED(Discount_Percentage__c), ISBLANK(Discount_Approval_Code__c))Cevap
- BAND(Discount_Percentage__c > 0.15, NOT(ISBLANK(Discount_Percentage__c)), ISBLANK(Discount_Approval_Code__c))
- CAND(PRIORVALUE(Discount_Percentage__c) > 0.15, ISBLANK(Discount_Approval_Code__c))
- DAND(ISPICKVAL(StageName, "Closed Won"), Discount_Percentage__c > 0.15, ISBLANK(Discount_Approval_Code__c))