SFDO-Community / declarative-lookup-rollup-summaries

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/
https://sfdo-community-sprints.github.io/DLRS-Documentation/
BSD 3-Clause "New" or "Revised" License
692 stars 237 forks source link

Developer count rollup doesn't recalculate using API #1285

Open tiagoefreitas opened 1 year ago

tiagoefreitas commented 1 year ago

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()); } } }

aheber commented 5 months ago

@tiagoefreitas could you provide some information your rollup configuration that you're using for this?