You need to sign in to do that
Don't have an account?
Do before insert triggers allow for partial updates?
This is a general question, I have no code examples yet. I hope I can convey my question in a manner you guys can understand without examples, let me know if I need to clarify.
I'm reading up on Apex, learning what I can do while I think through my solution. I will have two custom objects, one parent one child, so a one-to-many relationship. The child will have multiple Record Types. Several of the record types will have no limit on the number of recrds that can be created for each parent. There is however one record type where I will need to prevent the creation of that type if one already exists for that specific parent. I believe I can solve the issue with a before trigger. Where I get stumped is when these records get created in bulk, e.x. creating two hundred records via the data loader. I see the Database.insert() method will allow me to do partial saves on after triggers, but there is no documentation around before triggers and partial saves, at least none that I can find. Do before triggers support partial saves natively? If not, is there some other way I can ensure partial data loads?
Thanks in advance,
Cato