📚 SAP Business One SDK Help

CompanyService Object Members
See Also  Overview 

Public Methods

Public Method CreatePeriodReturns the PeriodCategoryParams Identification Key (PeriodCategory Key) based on the PeriodCategory data structure.
Public Method CreatePeriodWithFinanceParamsReturns a PeriodCategoryParams Identification Key, extended with finance parameters derived by the FinancePeriodParams identification key (system number, period indicator).
Public Method GetAdminInfoReturns the AdminInfo data structure.
Public Method GetAdvancedGLAccountmethod GetAdvancedGLAccount
Public Method GetBlobGets the contents of a blob field in the SAP Business One database.

NOTE: If you want to save a blob field to a file, we recommend that you use the SaveBlobToFile method.

Public Method GetBusinessServiceCreates a specified business service. Use this method for all types of services
Public Method GetCompanyInfoReturns the CompanyInfo data structure.
Public Method GetDataInterfaceCreates an empty data structure. This means the structure contains
the default setting/values of the database.
Public Method GetDataInterfaceFromXMLFileCreates a data structure from a specified XML file.
Public Method GetDataInterfaceFromXMLStringCreates a data structure from a specified XML string.
Public Method GetFeaturesStatusReturns the FeatureStatusCollection. A feature status can be either blocked or not.
Public Method GetFinancePeriodReturns a FinancePeriod data structure according to the specified finance period key parameters.
Public Method GetFinancePeriodsReturns the FinancePeriods collection according to the specified period category key parameters.
Public Method GetGeneralServiceReturns an instance of GeneralService for the specified user-defined object (UDO).

The GeneralService instance can be used to add, retrieve and delete rows of the main table and child tables linked to the specified UDO.

Public Method GetItemPriceReturns the ItemPriceReturnParams.
Public Method GetPathAdminReturns an object for setting and getting directory paths for storing various files.
Public Method GetPeriodReturns the PeriodCategory data structure according to the specified period category key parameters.
Public Method GetPeriodsReturns the PeriodCategoryParamsCollection.
Public Method GetServiceMetaDataGetServiceMetaData
Public Method IsUserLicensedIsUserLicensed
Public Method LoadBlobFromFileLoads a file into a blob field in the SAP Business One database.
Public Method RoundDecimalRounds data to a specified number of decimal places or to a whole number if no decimal places are specified.
Public Method SaveBlobToFileSaves to a file the contents of a blob field in the SAP Business One database.
Public Method SetBlobSets a blob field in the SAP Business One database.

NOTE: If you want to load a blob field to a file, we recommend that you use the LoadBlobFromFile method.

Public Method UpdateAdminInfoUpdates the AdminInfo data.
Public Method UpdateCompanyInfoUpdates the CompanyInfo data.
Public Method UpdateFinancePeriodUpdates the FinancePeriod data.
Public Method UpdatePathAdminUpdates the paths for storing various files.
Public Method UpdatePeriodUpdates the PeriodCategory data.
Public Method UpdateUserLicenseAssigns an SAP Business One license to a user, or removes a license from a user.

See Also