Hi,
We're using business rules to run a number of calculations on an entity. A number of the calculations are dependent on other calculations completing first:
e.g.
c = a + b
d = c - e
In this example, c must first be calculated before the second calculation can take place. At the moment, using business rules, this requires us to save the Record twice. The result of the first calculation must be committed to the db before the second calculation can run.
If we replaced our business rules with a c# plugin, would the behavior still be the same? Or would we be able to complete both of the above calculations in one plugin trigger?
Hi JM,
While Business Rules are easy to build, unfortunately you don't have control over when they run. In fact, they run in order of when the rules were published to the system, so you may be able to get what you want by publishing those rules in order. But the best solution is to write some JavaScript, as you CAN control the order of events there.
Hope this helps,
Dave
Hi,
In plugin you can replace this d = c - e with this d = (a + b) - e
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156