Thanks, rhankey! That worked and now my receiving BR recognizes the helper. Now I've run into a different problem that I've tried to solve between myself, Google and an AI chatbot that I cannot name. the below code isn't validating. It tells me that the variables "gateWay" and "envTbl" are not declared. The If Not..End If is the code snippet from OneStream for calling another BR. Why does this not declare the variables?
Public Class MainClass
Public Function Main(ByVal si As SessionInfo, ByVal globals As BRGlobals, ByVal api As Transformer, ByVal args As ConnectorArgs) As Object
'added code for Retry function - Ash
Dim Retry As Boolean = True
Dim RetryAttempt As Integer = 1
Dim MaxRetryAttempt As Integer = 5
Dim WaitTimeMilliSec As Integer = 2000
'Dim gateWay As String
'Dim envTbl As String
'test code to pull in environment variables from a Helper 03-05-2026
'Define reference to business rule
Dim JDE_EnvironmentHelper As New OneStream.BusinessRule.Extender.JDE_EnvironmentHelper.MainClass '<-- Update ReferencedBRName with your Business Rule
'Call function within referenced business rule
If Not JDE_EnvironmentHelper Is Nothing Then
Dim gateWay As String = JDE_EnvironmentHelper.GetConnectionString(si, "gateWay") '<-- Update ReferencedBRFunctionName, param1..paramX, returnVariable type
Dim envTbl As String= JDE_EnvironmentHelper.GetConnectionString(si, "envTbl")
End If
brapi.ErrorLog.LogMessage(si, "Environment Gateway | GateWay is: " & gateWay.ToString)
brapi.ErrorLog.LogMessage(si, "Environment Table | Table Set is: " & envTbl.ToString)
' End test code 03-05-2026