Skip to main content

Hi guys! Im having this error. Ive used Valid Billing Country to validate. Please some guidance with why I get this error. Thanks!

 

#Trailhead  

Create Validation Rules: Formulas and Validations

1 Antwort
  1. 4. Jan. 2022, 01:16

    Hi,

     

    1. Add a validation rule which will block the saving of a new or updated contact if the contact is related to an account and has a mailing postal code (which has the API Name MailingPostalCode) different from the account’s shipping postal code (which has the API Name ShippingPostalCode).
    2. Name the validation rule Contact must be in Account ZIP Code
    3. A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be saved
    4. The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANKfunction for this check)
    5.   

    AND (

    NOT(ISBLANK( AccountId )),

    MailingPostalCode <> Account.ShippingPostalCode

     

    Please check similar discussions:

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8tLpSAJ

0/9000