I need to insert more than one accounts from c# console app that uses the power of odata webservices in business central. I can insert one but when it's come to more than one, the errors and exceptions start popping up.
here is my extract
var Context = new BC19.NAV(new Uri(serviceBaseAddress)); Context.Credentials = CredentialCache.DefaultNetworkCredentials;
try { var coa = new BC19.Chart_of_Accounts { No = /111/, Name = /Banana/ };
This works but if I want to insert more than one am not able. Context.AddToChart_of_Accounts(coa) doesn't allow if coa has more than one account. The issue is the same also in case of the multiple customers.
Hopefully other experts can give you better advice.
Thanks.
ZHU
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.