function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Priyanka PillaiPriyanka Pillai 

Create a validation rule to check that a contact is in the zip code of its account . This challenge displays an error of"Account field does not exist"

NagendraNagendra (Salesforce Developers) 
Hi Priyanka,

Sorry for this issue you are facing.

Follow below steps to complete the challenge successfully.
  • Go To Setup- 
  • Customize-
  • Contact-
  • Validation Rules-
  • Rule name- Contact must be in Account ZIP Code- 
Formula-
AND(NOT(ISBLANK(AccountId)) ,MailingPostalCode <> Account.ShippingpostalCode)
  • Error Message- Zip Codes do not match-
  • Then click on Save and check your challenge.

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.

Thanks,
Nagendra
 
Ajay K DubediAjay K Dubedi
Hi Priyanka,

Please try this:

AND(
NOT(ISBLANK(AccountId)),
MailingPostalCode != Account.ShippingPostalCode
)

Hope it will work for you. Please mark it as best answer if you find it helpful.
Thanks.
Ajay Dubedi