Skip to main content

Hello all, I have a problem with this unit: https://trailhead.salesforce.com/content/learn/modules/point_click_business_logic/validation_rules

The exercise is telling us to use: MailingPostalCode but in my playground the object account has only ShippingPostalCode what is the solution?

15 answers
  1. Divya Chauhan Forum Ambassador
    Dec 16, 2022, 9:21 AM

    Hello@Youssef Idrissi,

    Its on Contact

    Contact | Object Reference for the Salesforce Platform | Salesforce Developers

    try this code

    AND(

    NOT( ISBLANK( AccountId ) ),

    MailingPostalCode <> Account.ShippingPostalCode

    )