Forum Discussion

lrossi1's avatar
lrossi1
New Contributor
22 days ago
Solved

Need help passing business rule into scenario member filter of Cube View.

I have a cube view with 12 columns (one for each  month). It is used in a quarterly activity, and the columns need to reflect the appropriate forecast scenario depending on which workflow was opened....
  • sameburn's avatar
    21 days ago

    Hi 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