Declarative Lookup Rollup Summaries (DLRS) is a community built and maintained Salesforce application that allows you to create cross object roll-ups declaratively - no code! For install instructions and documentation, visit our website https://sfdo-community-sprints.github.io/DLRS-Documentation/
I am using a rollup to calculate the COUNT of child records, using Id in the Field to aggregate.
I use the bellow trigger on the child object, and it works for SUM rollups, but not for the COUNT.
It works if I manually do a Full Calculate.
What am I missing?
trigger Zen_SOL_CalculateRollups on OrderApiSales_Order_Linec (after insert,after update) { if(!system.isBatch()) { try{ dlrs.RollupService.rollup(trigger.oldMap,trigger.newMap,OrderApiSales_Order_Linec.SObjectType); } catch(Exception ex){ system.debug(ex.getMessage()); } } }