You need to sign in to do that
Don't have an account?
Jake Irvin
Field is not writeable SObjectException
I've been working on the trailhead training for apex triggers
However I keep getting an error in the developer console: "AccountAccess Trigger: Field is not writeable: Account.SippingAddress. I've scoured the forum but I haven't found anything that has been the answer to my problem. Thanks in advance for your help!
However I keep getting an error in the developer console: "AccountAccess Trigger: Field is not writeable: Account.SippingAddress. I've scoured the forum but I haven't found anything that has been the answer to my problem. Thanks in advance for your help!
trigger AccountAddressTrigger on Account (before insert, before update) { for(Account a : Trigger.New) { if(NULL != a.BillingPostalCode && a.Match_Billing_Address__c == true){ a.ShippingAddress = a.BillingAddress; } } }
Billing Address Field
- BillingStreet
- BillingCity
- BillingState
- BillingPostalCode
- BillingCountry
- BillingLatitude
- BillingLongitude
Shipping Address FieldAll Answers
Billing Address Field
- BillingStreet
- BillingCity
- BillingState
- BillingPostalCode
- BillingCountry
- BillingLatitude
- BillingLongitude
Shipping Address Field