A Salesforce Administrator is configuring data quality enforcement rules for different business scenarios across standard and custom objects. Match each business requirement with the validation rule formula snippet that correctly implements the required logic.
- Prevent setting a Lead rating to 'Hot' unless the Annual Revenue field is populated.AND( ISCHANGED( Rating ), ISPICKVAL( Rating, "Hot" ), ISBLANK( AnnualRevenue ) )
- Prevent modifications to an existing Account Number unless the logged-in user possesses a specific custom permission.AND( NOT( ISNEW() ), ISCHANGED( AccountNumber ), NOT( $Permission.Bypass_Account_Validation ) )
- Verify that an Account Billing State matches the state corresponding to the entered Billing Postal Code using a Zip Code lookup object.AND( NOT( ISBLANK( BillingPostalCode ) ), VLOOKUP( ObjectType.Zip_Code__c.Fields.State__c, ObjectType.Zip_Code__c.Fields.Name, BillingPostalCode ) <> BillingState )
- Ensure that a entered Tax ID follows the standard format of three digits, a hyphen, two digits, a hyphen, and four digits.AND( NOT( ISBLANK( Tax_ID__c ) ), NOT( REGEX( Tax_ID__c, "\\d{3}-\\d{2}-\\d{4}" ) ) )
Cevap
Each business requirement correctly maps to its respective formula function: 1 maps to AND with ISCHANGED/ISPICKVAL/ISBLANK; 2 maps to NOT(ISNEW()) combined with $Permission verification; 3 maps to the VLOOKUP function for cross-record validation; 4 maps to the REGEX function for string pattern validation.
Each requirement leverages the appropriate formula function tailored to the target data type and logic requirement: ISPICKVAL and ISBLANK for picklist/null checks, ISNEW and $Permission for record lifecycle and access controls, VLOOKUP for dynamic cross-record lookup comparisons, and REGEX for text pattern validation.
Adım Adım Çözüm
Anahtar Kavram
Salesforce Validation Rule Formula Functions (ISBLANK, ISPICKVAL, VLOOKUP, REGEX, ISNEW)