You need to sign in to do that
Don't have an account?
Karen James 6
Trigger error any help appreciated
Hi, I have an error on my trigger and can't work out why this is not working?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Karen,
All custom fields need to have the "__c" suffix appended - the error you're seeing is on lines 13-18:
All Answers
Karen,
All custom fields need to have the "__c" suffix appended - the error you're seeing is on lines 13-18:
// map any other fields you would like
// Now preserve the standard fields when editing
if (Trigger.isUpdate == true) {
a.AnnualRevenue = trigger.oldmap.get(a.Id).AnnualRevenue;
a.NumberOfEmployees = trigger.oldmap.get(a.Id).NumberOfEmployees;
a.Description = trigger.oldmap.get(a.Id).Description;
a.ZoomInfoCountry = trigger.oldmap.get(a.Id).ZoomInfoCountry;
a.ZoomInfoStreet = trigger.oldmap.get(a.Id).ZoomInfoStreet;
a.ZoomInfoCity = trigger.oldmap.get(a.Id).ZoomInfoCity;
a.ZoomInfoCountryStateProvince = trigger.oldmap.get(a.Id).ZoomInfoCountryStateProvince;
a.ZoomInfoPostalZipCode = trigger.oldmap.get(a.Id).ZoomInfoPostalZipCode;
}
}
}
}
Invalid field AnnualRevenue for SObject Account_Management__c
Not sure why its come up on first line and seems to be referring to a different object?
Thanks for your help, Karen.