Forum Discussion
sameburn
OneStream Employee
3 days agoHi lrossi1
One of the issues you might be having could be to do with the api object you are passing into your function
E.g it sounds and looks like you are using a Finance BR... but you are not passing in the FinanceRulesApi into your function.
If this is the case, you should use api as FinanceRulesApi... not api as Object. This will enable you to use the finance rules api in your logic
Have a look at the boilerplate code when you create a new Finance BR for context
I'd also recommend adding logging lines to demystify what your code is doing at runtime
Hope this helps
Sam
Related Content
- 2 years ago