The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
OSAdmin
OneStream Employee
5 years agoI want to create a SQL Select Statement but I need to check whether the table in BI Blend exists first.
Originally posted by Eric Osmanski
4/13/2020
I want to create a SQL Select Statement but I need to check whether the table in BI Blend exists first.
amoore
OneStream Employee
4 years agothis should work also!
If (args.FunctionName.XFEqualsIgnoreCase("GetBiBlendTableName"))Then
Dim tableName As String = SharedStringConstants.Unknown
'Get the BI Blend Table Name and throw and error if the table does not exist.
Using dbConnApp As DbConnInfoApp = BRApi.Database.CreateApplicationDbConnInfo(si)
Dim biBlendInfo As StageBiBlendInfo = StageBiBlendInfoCrud.GetInfo(dbConnApp, False, si.WorkflowClusterPk)
tableName = biBlendInfo.BlendTableName
If tableName.XFEqualsIgnoreCase(SharedStringConstants.Unknown) Then
Throw New XFException(si, Nothing, Nothing, "BI-Blend Table Does NOT exist for current Workflow.")
End If
End Using
Return TableName
Related Content
- 2 years ago