From bd2f1fbefc2123ada6118a1ed42478a464d3ad16 Mon Sep 17 00:00:00 2001 From: Andrew Chu Date: Thu, 3 Oct 2024 17:39:06 -0500 Subject: [PATCH] added the AllOrNothing flag --- dlrs/main/classes/RollupService.cls | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlrs/main/classes/RollupService.cls b/dlrs/main/classes/RollupService.cls index 0445df35..0b11ace3 100644 --- a/dlrs/main/classes/RollupService.cls +++ b/dlrs/main/classes/RollupService.cls @@ -1673,8 +1673,9 @@ global with sharing class RollupService { try { - // Perform the update operation with Dmloptions - return Database.update(masterRecords, dmlOptions); + return Database.update(masterRecords, allOrNothing); + + } catch (DMLException e) { // Determine if the exception is due to parent record/s having been deleted Boolean throwException = true;