DML Partial Success in Apex: Database.SaveResult and Savepoints
A bulk update processes 5,000 records. Validation rules reject 12 of them. The remaining 4,988 are clean. Should the 4,988 commit, or should the whole batch roll back?
The answer is business-specific.
sapotacorpvn.hashnode.dev7 min read