cancel
Showing results for 
Search instead for 
Did you mean: 

core query API license

Leonel_Guzman
Confirmed Champ
Confirmed Champ

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.

1 ACCEPTED ANSWER

Cindy_Catalano
Champ on-the-rise
Champ on-the-rise

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

View answer in original post

1 REPLY 1

Cindy_Catalano
Champ on-the-rise
Champ on-the-rise

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