-
I've confirmed that the custom setting Rollup Settings has Is Enabled = true. My rollups are configured using the CMDT-driven invocable action in flows. All the flows are triggered when "A record is created or updated", and I used the UPSERT context in the action. They calculate correctly when I use Recalculate Rollup. However, they don't automatically update on record creation or update. Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 23 replies
-
@steph-EV in addition to the CMDT driven invocable, do you have the |
Beta Was this translation helpful? Give feedback.
-
@jamessimone Thanks for your response! I confirm that "Is Rollup Logging Enabled?" is set to true on the Rollup Control. And actually, this solved my problem...I was able to see that the one rollup I was not running from Recalc (because it had an error) was causing the problem when doing a record update. So silly of me! I deleted that CMDT and it runs as expected now. Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
-
Hi @jamessimone I have the same issue (and setup), but this time it is not due to a malfunctioning rollup. I have two CMDT records on the same child object. One is a LAST operation, and the other is a COUNT. They both has the same WHERE clause on RecordType.DeveloperName Both rollups work when I use the Recalculate button. However, only the LAST cmdt calculates when run from a record update / flow. The COUNT does not update in this case. What could be the cause of this? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @jamessimone , thanks for all your writing and this package! I'm looking forward to using it. I'm just starting out and trying to get this rollup to work via trigger in a scratch org: I see that when an opportunity changed from something to Closed Won, Account Revenue is updated as expected. But if I update the Opportunity to something else like Closed Lost, the Account isn't updated. Here's the log for that (hopefully I got the right level and log): If I edit the opportunity again (without necessarily changing anything), Account Revenue is updated as expected: Running Recalculate Rollup works fine. FWIW, before reproducing in the scratch org, I tried writing an apex test in my sandbox. That passed, and I couldn't figure out why the test behaves differently. Do you know where I might be going wrong? Thanks again! |
Beta Was this translation helpful? Give feedback.
@jamessimone Thanks for your response!
I confirm that "Is Rollup Logging Enabled?" is set to true on the Rollup Control. And actually, this solved my problem...I was able to see that the one rollup I was not running from Recalc (because it had an error) was causing the problem when doing a record update. So silly of me! I deleted that CMDT and it runs as expected now. Thanks again for your help.