03-03-2022 08:38 AM - edited 03-03-2022 08:39 AM
Call a Business Rule from a Business Rule
'Add referenced assembly
'Add --> BR\ReferencedBRName to the Referenced Assemblies field on the properties where "ReferencedBRName" is the name of your Business Rule
'Define reference to business rule
Dim referenceBR As New OneStream.BusinessRule.Extender.ReferencedBRName.MainClass '<-- Update ReferencedBRName with your Business Rule
'Call function within referenced business rule
If Not referenceBR Is Nothing Then
Dim returnVariable As String = referenceBR.ReferencedBRFunctionName(si, param1, param2) '<-- Update ReferencedBRFunctionName, param1..paramX, returnVariable type
End If
Source: Marketplace Solution - Snippet Editor Author: OneStream