A Salesforce administrator is configuring validation rules on a custom object named Asset_Maintenance__c to enforce data quality standards. Match each business validation requirement with its corresponding validation rule formula syntax.
- Require the Resolution_Summary__c field to be populated only when the Status__c picklist field is changed to 'Completed'.AND(ISCHANGED(Status__c), ISPICKVAL(Status__c, "Completed"), ISBLANK(Resolution_Summary__c))
- Validate that the custom text field Serial_Number__c conforms to a format of exactly two uppercase letters followed by six numerical digits.AND(NOT(ISBLANK(Serial_Number__c)), NOT(REGEX(Serial_Number__c, "^[A-Z]{2}[0-9]{6}$")))
- Prevent users from entering a Completion_Date__c that occurs in the future whenever the Status__c picklist field is set to 'Completed'.AND(ISPICKVAL(Status__c, "Completed"), Completion_Date__c > TODAY())
- Require Manager_Approval_Notes__c when updating an existing record if the Discount_Percentage__c exceeds 20%.AND(NOT(ISNEW()), Discount_Percentage__c > 0.20, ISBLANK(Manager_Approval_Notes__c))
Answer
The correct pairings match each validation scenario to its proper formula logic: (1) Requiring resolution summary on status change maps to AND(ISCHANGED(Status__c), ISPICKVAL(Status__c, 'Completed'), ISBLANK(Resolution_Summary__c)); (2) Formatting serial numbers maps to AND(NOT(ISBLANK(Serial_Number__c)), NOT(REGEX(Serial_Number__c, '^[A-Z]{2}[0-9]{6}$'))); (3) Restricting future completion dates maps to AND(ISPICKVAL(Status__c, 'Completed'), Completion_Date__c > TODAY()); (4) Requiring manager notes on updates maps to AND(NOT(ISNEW()), Discount_Percentage__c > 0.20, ISBLANK(Manager_Approval_Notes__c)).
Each business requirement relies on standard Salesforce formula functions: ISCHANGED() checks if a picklist field was altered in the current transaction; REGEX() validates string patterns when negated with NOT(); date logic compares custom date fields against TODAY(); and NOT(ISNEW()) ensures validation logic applies exclusively to existing record edits rather than initial inserts.
Step-by-Step Solution
Key Concept
Validation Rules and Data Quality Enforcement