A Salesforce administrator at a consulting firm needs to enforce data quality on the Lead object. The business requirement states that whenever a lead's Lead Source picklist is set to "Web", the Email field must be populated before the record can be saved or converted. Which configuration or formula should the administrator implement to meet this requirement?
- Create a validation rule on the Lead object with the formula: AND( ISPICKVAL(LeadSource, "Web"), ISBLANK(Email) )Answer
- BCreate a validation rule on the Lead object using the formula: AND( LeadSource = "Web", Email == NULL )
- CMap the Lead Source field to the Contact Email field in the Lead Conversion Field Mapping settings.
- DRemove the "Web" picklist value from the Lead record type picklist assignment settings.
Answer
Create a validation rule on the Lead object with the formula: AND( ISPICKVAL(LeadSource, "Web"), ISBLANK(Email) )
The correct choice utilizes the validation rule formula AND( ISPICKVAL(LeadSource, "Web"), ISBLANK(Email) ). In Salesforce validation rules, formulas return true when data is invalid. Using ISPICKVAL evaluates picklist values correctly, and ISBLANK verifies whether the email field has been left unpopulated.
Step-by-Step Solution
Key Concept
Validation Rules and Data Quality Enforcement