Marco
12 months agoContributor II
How to do a force consolidate in a Business Rule
Hi, Is there a way to perform a force consolidate in a BR? since running a datamgmtsequence isn't working properly for me. Example:
Select Case api.FunctionType
Case Is = FinanceFunctionType.CustomCalculate
'If args.CustomCalculateArgs.FunctionName.XFEqualsIgnoreCase("Test") Then
'api.Data.Calculate("A#Profit = A#Sales - A#Costs")
'End If
brapi.utilities.ExecuteDataMgmtSequence(si, "PLN_Consolidate_AnyScenario", Nothing)
End Select
And with this, the consolidation doesn't run; I'm not sure if I'm missing sending information or something like that.
Add a Step in the DM Sequence to run the Force Consolidate, as the final step. After your Custom Calculate DM Step. Data Management Sequences can have one to many steps in that Sequence.
Hope this helps,