A Salesforce Administrator needs to enforce data quality standards on the Account object. Business policy requires that an error message be displayed to prevent saving an Account record under either of the following independent conditions:
1. The Account Type picklist is set to 'Partner' and the custom field Tax_ID__c is left blank.
2. The Account Rating picklist is set to 'Hot' and the AnnualRevenue numeric field is either blank or less than or equal to zero.
Which validation rule formula expressions will successfully evaluate to TRUE to enforce these data quality requirements? (Select TWO answers)
- AND(ISPICKVAL(Type, "Partner"), ISBLANK(Tax_ID__c))Answer
- AND(ISPICKVAL(Rating, "Hot"), OR(ISBLANK(AnnualRevenue), AnnualRevenue <= 0))Answer
- CAND(ISPICKVAL(Rating, "Hot"), AnnualRevenue <= 0)
- DAND(ISPICKVAL(Type, "Partner"), ISBLANK(Lead.Tax_ID__c))
- EAND(RecordType.Name = "Partner", ISBLANK(Tax_ID__c))
Answer
The validation rules must evaluate to TRUE when data quality criteria are violated. The expression checking the Type picklist and the blank Tax_ID__c field using ISPICKVAL and ISBLANK, along with the expression checking the Rating picklist while incorporating ISBLANK and numeric comparison for AnnualRevenue, are the two correct formula expressions.
Validation rules trigger an error when the formula evaluates to TRUE. The formula combining ISPICKVAL(Type, "Partner") with ISBLANK(Tax_ID__c) correctly identifies when a Partner account is saved without a tax ID. The formula combining ISPICKVAL(Rating, "Hot") with OR(ISBLANK(AnnualRevenue), AnnualRevenue <= 0) correctly handles both blank and non-positive numerical values.
Step-by-Step Solution
Key Concept
Salesforce Validation Rule Formula Writing and Null Value Handling