I'm trying to get list of all company accounts using SAP Business One (B1 or BO) Data Interface API (DI API) for .NET.
An account is represented as ChartOfAccounts
SDK's type.
I can't figure out if there is a way to do something like this (it's how I'm getting the list of items):
var oItem = (Items) Company.GetBusinessObject(BoObjectTypes.oItems);
var oSBObob = (SBObob)Company.GetBusinessObject(BoObjectTypes.BoBridge);
var oRecordSet = oSBObob.GetItemList();
But it seems there is no method to similar to GetItemList()
for accounts in SBObob
type.
Does anybody know how to get list of company accounts?