Forum Discussion
I'm assuming that you are going to use a DM sequence to execute this. You can pass time in the DM step to run for multiple periods.
This is the current solution, but it would be nice to run the Custom Calculation directly. The Data Management Tasks are filling up the Task window when running over many data units.
- JohnMorehead2 years agoNew Contributor III
If you want to run a Custom Calc BR from another rule, such as an Extender Rule, you can do so with the following example code:
- victorthomsen2 years agoNew Contributor II
Do you have packages imported outside of OS Business rules? in VS or VSC? It does not look like OS env
- JohnMorehead2 years agoNew Contributor III
I'm not sure I fully understand the question, but that is a screenshot from Visual Studio Community, where I do most of my coding. I have brought in references to the OneStream DLLs so that it will correctly recognize the OneStream functions/API.
- ckattookaran3 years agoVIP
I'm still not sure how you can call it still.
- BrandonG3 years agoNew Contributor II
Look for "BRApi.Finance.Calculate.ExecuteCustomCalculateBusinessRule" in the Business Rule Editor.
Maybe this function is/was deprecated, but it would be very useful in cases where you need to run a calculation against custom time periods.
Thanks though!
- ckattookaran3 years agoVIP
I do see that. However, to use that, you still need a DM job for the user to execute it. Or they should have access to run an extender rule (which will lead to opening the business rules page to the user!!!). I cannot think of a way to do it unless you go the route of dashboard buttons and extender rules. When you say a DM job is triggered for data units, how is that being called?
Related Content
- 4 months ago
- 6 months ago
- 10 months ago