What should be the formula for this? - Answers - Salesforce Trailblazer Community
Ask Search:
Raghuveer KumarRaghuveer Kumar 

What should be the formula for this?

User-added image
Need to know the formula for the above challenge
Best Answer chosen by Raghuveer Kumar
Rushita BavishiRushita Bavishi
You need to create validation rule in contact object not in Account.

All Answers

Rushita BavishiRushita Bavishi

hi Raghuuveer.
You can try this validation rule :

AND(
NOT
(ISBLANK( Account.Id ) ),
MailingPostalCode <> Account.ShippingPostalCode
)

Kindly mark as best answer if it will help you.
Raghuveer KumarRaghuveer Kumar
Getting this Error: Field Account does not exist. Check spelling.
Rushita BavishiRushita Bavishi
You need to create validation rule in contact object not in Account.
This was selected as the best answer
Raghuveer KumarRaghuveer Kumar
Thank you, it worked. I have clicked on Best Answer :-)
Rushita BavishiRushita Bavishi

I am glad that it helped you.

Thanks,
Rushita.