Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to create a validation rule to check that a contact is in the zip code of its account?

Asked by Aashna Saito Apr 26, 2023 1.2K views 1 answer
Share

About this question

 I think i misunderstood validation rules, so i answered the following challenge creating a validation rule that only applies if the insertion is different for what i write in the rule:


AND(ISBLANK( Account.Id ),

OR( MailingPostalCode = Account.ShippingPostalCode ))

I mean, if the insertion/update is correct, then do it, else display an error message.


The challenge has succeeded.

My question is, am i wrong or i should write in the validation rule the conditions where shouldn't be accepted?

Here is the challenge

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.