Skip to main content
Member
Sep 9, 2026 2:02 PM UTC
Solved

Using Extender BR method in Confirmation rule

Hi Everyone,
I am trying to use one Extender BR method into different confirmation rule, after doing some research did not find anyway. If anyone have any suggestion, please post it.

StefanoAnswer
Member
Sep 11, 2026 1:29 PM UTC

You could call a finance BR like below and do all common logic there or from there call the extender

confirmation rule….
….
Dim nsHelper As New OneStream.BusinessRule.Finance.NSReconTEST.MainClass
nsHelper.NSReconTEST(si, api, args)
….

 

finance BR function (set BR ‘Contain global functions for formulas’ property to true) …
...
Public Sub NSReconTEST(si As SessionInfo, api As FinanceRulesApi, args As FinanceRulesArgs)
    Try
    ....
    If ... Then
        args.ConfirmationRuleArgs.Info1 = ...
        args.ConfirmationRuleArgs.DisplayValue = ...
    End If
    Catch ex As Exception
    ErrorHandler.LogWrite(si, New XFException(si, ex))
    End Try
End Sub  
….  

1 reply

StefanoAnswer
Member
Sep 11, 2026 1:29 PM UTC

You could call a finance BR like below and do all common logic there or from there call the extender

confirmation rule….
….
Dim nsHelper As New OneStream.BusinessRule.Finance.NSReconTEST.MainClass
nsHelper.NSReconTEST(si, api, args)
….

 

finance BR function (set BR ‘Contain global functions for formulas’ property to true) …
...
Public Sub NSReconTEST(si As SessionInfo, api As FinanceRulesApi, args As FinanceRulesArgs)
    Try
    ....
    If ... Then
        args.ConfirmationRuleArgs.Info1 = ...
        args.ConfirmationRuleArgs.DisplayValue = ...
    End If
    Catch ex As Exception
    ErrorHandler.LogWrite(si, New XFException(si, ex))
    End Try
End Sub  
….