📚 SAP Business One SDK Help

Company Object Members
See Also  Overview 

Public Methods

Public Method GetConnectionContextReturns a connection string you can use to connect to the DI API with the same company and with the same user, enabling single sign-on.
Public Method GetDICompanyReturns the DI company object.

Use this method to reduce memory consumption when running multiple DI API add-ons. For more information, see Improve Add-On Performance.

Public Method GetExtensionPropertyReturns the shared parameters and parameters of your extension.

The shared parameters and parameters are in the Parameters tab of the Extension Registration Data Generator window. To access the window, in …\SAP\SAP Business One SDK\Tools\ExtensionPackage, run the ExtensionPackage file.

  • Shared Parameters - The parameters or configuration required to run the extension. The parameters are shared in all extension instances running on different companies.
  • Parameters - The parameters or configurations required to run the extension.
Public Method GetExtensionSharedFolderPathGet extension shared folder in current company
Public Method GetExtensionSharedFolderPathExGet extension shared folder in current company by connection string
Public Method GetFormLicenseStatusReturns the access rights for the currently connected user for the specified form type.
Public Method GetServiceLayerConnectionContextUsed for Single Sign On (SSO) to a Service Layer company.
Public Method GetServiceLayerURLsReturns the Service Layer URL for the currently connected company in both on-premise and cloud environments. When multiple Service Layer instances are registered in the System Landscape Directory (on-premise) or Cloud Control Center (cloud), the method returns the URLs separated by commas.
Public Method GetUserStorageGet user storage for company on cloud
Public Method SetExtensionPropertySets the shared parameters and parameters of your extension.

Public Properties

Public Property AccessTokenGets the Access Token
Public Property CompanyIDGets the Company ID
Public Property CurrentPeriodThe period enabled for data entry and posting.

Prior to release 2007 A, there is a current period setting that indicates the period enabled for data entry and posting.

As of release 2007 A, all periods are enabled and the current period setting is no longer used. The value of this property is always -1.

Public Property DatabaseNameThe name of the database for the current company.
Public Property EnableAlertsIndicates whether to enable alerts.
Public Property InstallationIdThe installation ID (license-related).
Public Property LocalizationThe localization currently set for the SAP Business One application.
Public Property NameThe display name of the company.
Public Property ServerDateThe date on the server to which the SAP Business One application is connected.
Public Property ServerNameThe server to which the SAP Business One application is connected.
Public Property ServerTimeThe time on the server to which the SAP Business One application is connected.
Public Property SystemIdThe system ID of the SAP Business One application. The ID is taken from the license data of the application.
Public Property UserNameThe user logged into the SAP Business One application.

See Also