Marco
22 days agoContributor II
How to pass parameters through ExecuteCustomCalculateBusinessRule
Hi Everyone.
I am trying to run a CustomCalculateBR in another BR, and I have the following for the variable namevaluepairs, but I would also like to pass parameters in this BR. I have been investigating but did not find a solution. Similarly, I would like to ask if passing with .base will work the same way as if it were in a step or not. I would appreciate it if you could help me.
Dim mvp As New Dictionary(Of String,String)
mvp.Add("Cube","HLFPLN")
mvp.Add("Entity",strEntTx1)
mvp.Add("Consolidation","Local")
mvp.Add("Scenario","|WFScenario|")
mvp.Add("Time","T#|!PLN_ParamFcstMths!|")
mvp.Add("View","None")
mvp.Add("Flow","None")
mvp.Add("IC","None")
mvp.Add("UD5","None")
mvp.Add("UD6","None")
mvp.Add("UD7","None")
mvp.Add("UD8","None")
mvp.Add("Parameters","test=ValueTest")
BRApi.Finance.Calculate.ExecuteCustomCalculateBusinessRule(si,"PLN_ThreeMonths2","Test",mvp,CustomCalculateTimeType.MemberFilter)