📚 SAP Business One SDK Help

AddonIdentifier Property
See Also  Example

Description

A unique string allowing the License Service to recognize your add-ons.

In runtime, the identifier is passed to the SDK before connecting to the SAP Business One application. The License Service then checks for an appropriate add-on license in the license key.

Property type

Read-write property

Syntax

Visual Basic
Public Property AddonIdentifier() As String

Remarks

Make sure to set this property before calling SboGuiApi.Connect.

For each add-on license, there is a different identifier string. You must create an identifier appropriate to the installed license. For more information, see Setup and Installation and Connecting to the UI API.

Example

The following sample code shows how to set an add-on identifier.
(Visual Basic)Copy Code
Private Sub SetApplication()
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
    Set SboGuiApi = New SAPbouiCOM.SboGuiApi
    sConnectionString = Command

    '// set the Addon identifier
    '// this identifier is for Development license
    SboGuiApi.AddonIdentifier = "4CC5B8A4E0213A68489E38CB4052855EE8678CD237F64D1C11C22707A54DBD2D5D5F6E4050A09B9F9FB80FAC44F6"

    '// connect to a running SBO Application
    SboGuiApi.Connect sConnectionString

    '// get an initialized application object
    Set SBO_Application = SboGuiApi.GetApplication()
 End Sub

See Also