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
shaharyar khanshaharyar khan 

GIVING ERROR unknown variable ShippingPostalCode ?

i am doing trailhead triggers challenge ,i have completed first challange successfully but in second challenge everything is fine still giving error unknown variable ShippingPostalCode.
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. I Hope that will help you
1) https://developer.salesforce.com/forums/?id=906F0000000AuHoIAK
2) https://developer.salesforce.com/forums/?id=906F0000000ArVxIAK

trigger AccountAddressTrigger on Account (before insert, before update) {

    for(Account a : Trigger.new){
        If (a.Match_Billing_Address__c == true && a.BillingPostalCode!=Null) {
            a.ShippingPostalCode = a.BillingPostalCode;
        }   
    } 

}
Let us know if this will help you

Thanks
Amit Chaudhary

 
Sai Kalyan SanisettySai Kalyan Sanisetty
Please Post your Code,so that we will help you out