Skip to main content
Create a validation rule:

 

Rule Name: Contact_must_be_in_Account_ZIP_Code

 

Operator: AND (to return a “True” response if both conditions for the rule are true)

 

Check for two conditions:

 

Verify that the contact is associated with an account id. Use the ISBLANK and NOT functions for this check.

 

Verify that the contact billing zip code is different than the account shipping zip code. Use the API names BillingPostalCode and ShippingPostalCode and the <> (Not Equal) operator for this check.

 

Enter an error message for the validation rule.

 

My answer is

 

AND(

 

NOT(ISBLANK(AccountId)),

 

/*NOT(ISNUMBER(AccountId))*/

 

(BillingPostalCode__c <> ShippingPostalCode__c))

 

What am I doing wrong?

 

 
9 respuestas
  1. 18 dic 2020, 19:50
    Glad to help. If this resolves your issue, please mark Best Answer to close out the question :)
0/9000