当我单击检查挑战以获取以下代码时
trigger AccountAddressTrigger on Account ( after update , after insert) {
for(Account acct : trigger.new){
if(acct.Match_Billing_Address__c == true){
acct.ShippingPostalCode = acct.BillingPostalCode;
}
}
}
我收到错误消息:
AccountAddressTrigger:执行AfterInsert的原因是: System.FinalException:记录是只读的 Trigger.AccountAddressTrigger:第6行,第1列