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
Wilson LamWilson Lam 

How to Code for Creating Validation Rule Challenge?

I understand the concept behind it from this.

https://trailhead.salesforce.com/point_click_business_logic/validation_rules

But the article does explain what all the coding syntax mean or how to put it together but the challenge asks me to do exactly that...

Did I miss a step? I am stuck but I don't to copy and paste the formula. Where can I learn to write the formula for this challenge from scratch?

Thanks!
Wilson
Wilson LamWilson Lam
I do not know what the AND, OR , NOT, etc. mean in the beginning of the formula expression syntax.
Amit Chaudhary 8Amit Chaudhary 8
You can start with below module
1) https://trailhead.salesforce.com/point_click_business_logic/formula_fields

PLease check below post to learn more about formula
1) https://help.salesforce.com/articleView?id=customize_functions.htm&type=0

User-added image

In your module your code should be like below
AND( NOT(ISBLANK(AccountId)), MailingPostalCode != Account.ShippingPostalCode )

Check below post for screen shot:-
1) https://developer.salesforce.com/forums/?id=906F0000000BOHUIA4


Let us know if this will help you