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
694 stars 237 forks source link

Issue with Checkbox Formulas #459

Closed jmfarber closed 7 years ago

jmfarber commented 7 years ago

Not sure if this is a bug or not but I was unable to get the real time trigger to work with Checkbox Formulas.

We created a checkbox formula on the child object. Set up the Where clause to look for the checkbox to be True and then basically counted the records using a Stage field. It would work in all options except for real time, We did deploy the class, trigger and test all fine no issues, so I'm not sure what the problem was. We changed the Checkbox formula to a number formula with an if statement giving the value of 1 or 0 and then summed the values into the parent object and it worked fine. Seems like a bug but I'm not a coder.

afawcett commented 7 years ago

The tool does not see changes in formula field values (platform behaviour), unless you list the fields referenced by the formula in the Relationship Criteria Fields fields. Take a look at the known issues in the README and thoughts on a workaround. I am not sure why it works for number formulas, maybe your Where criteria was not quite correct for the boolean case? Either way review the docs (also see README and doc section) for thoughts on formulas and known issues.

afawcett commented 7 years ago

@jmfarber Let me know if your good or not on this.