05-18-2021 09:47 AM
Good Morning
I am developing a web service so that another application can connect to onbase and it returns a Document, but I want to make use of the core query API license
Could someone show me an example of how to use it? or if a library is needed for this.
Thanks for your support.
05-18-2021 10:08 AM
You need to import the Hyland.Unity API and use the LicenseType QueryMetering, example below:
Private Function OnbaseUnityLogin(ByVal database As String, ByVal url As String) As Hyland.Unity.Application
Try
Dim app As Hyland.Unity.Application = Nothing
Dim props As OnBaseAuthenticationProperties = Hyland.Unity.Application.CreateOnBaseAuthenticationProperties(url, OB_ID, OB_PWD, database)
props.LicenseType = LicenseType.QueryMetering
app = Hyland.Unity.Application.Connect(props)
g_SessionID = app.SessionID
Return app
Catch UnityError As UnityAPIException
Throw UnityError
Catch ex As Exception
Throw ex
End Try
End Function
05-18-2021 10:08 AM
You need to import the Hyland.Unity API and use the LicenseType QueryMetering, example below:
Private Function OnbaseUnityLogin(ByVal database As String, ByVal url As String) As Hyland.Unity.Application
Try
Dim app As Hyland.Unity.Application = Nothing
Dim props As OnBaseAuthenticationProperties = Hyland.Unity.Application.CreateOnBaseAuthenticationProperties(url, OB_ID, OB_PWD, database)
props.LicenseType = LicenseType.QueryMetering
app = Hyland.Unity.Application.Connect(props)
g_SessionID = app.SessionID
Return app
Catch UnityError As UnityAPIException
Throw UnityError
Catch ex As Exception
Throw ex
End Try
End Function
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.