Check OneStream Version

Remote business rules have the ability to provide logic based on the OneStream Version.

Here is the example rule in C#:

Copy
namespace OneStream.BusinessRule.SmartIntegrationFunction.version_test_csharp
{
    public class MainClass
    {
        public string RunOperation() 
        {
            #if ONESTREAM8_4_0_OR_GREATER
                // Code if true
            #else
                // Code if false
            #endif
        }
    }
}

Here is the example rule in VB:

Copy
Namespace OneStream.BusinessRule.SmartIntegrationFunction.version_test_vb
    Public Class MainClass
        Public Shared Function RunOperation() As String
            #If ONESTREAM8_4_0_OR_GREATER
                ' Code if true
            #Else
                ' Code if false
            #End If
        End Function
    End Class
End Namespace