+ Start a Discussion
Manoj Suryawanshi 6Manoj Suryawanshi 6 

Getting error: Challenge Not yet complete... here's what's wrong: A field with an API Name 'Match_Billing_Address__c' does not exist on the Account object

Hello All, I got above error while solving challeng of Apex trigger. kindly help me out.

Thanks in adv.
Raj VakatiRaj Vakati
the code is here. Make sure you need to create a test record as per the trailhead and make sure trigger is active.
 
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;
        }   
    }
}



https://developer.salesforce.com/forums/?id=906F0000000D6AbIAK
 
RD@SFRD@SF
Hi Manoj,

Please also double check if you have the field created in the account object with the exact same api name.

RD