API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum



I try to create multiple entries in a cashbook in one step, but it still creates roundstrips foreach entry.

I cache all data locally as recommended.

I create the work array

var cashBookEntriesData = new ICashBookEntryData[numberOfEntries];

I apply to each entry (which caues the roundtrip)

cashBookEntriesData[i] = _session.CashBookEntryData.Create(CashBookEntryType.FinanceVoucher, myCashBook, null, null, myAccount, myContraAccount);

And finally update.


besides the roundtrip then it works perfect... but takes forever.

So the question is how do I create the entries without using the Create methode, the properties has no setters?

created Mar 4, 2013 by perbuus
0% Accept Rate
Q 3 A 1 C 2

2 Answers

Hi Per,

Probably the easiest way to avoid this is to run without the SDK by integrating directly against the SOAP api.

You can get a bit more info on how to do that here:

answered Mar 4, 2013 by nkn
Hi Nikolaj,

Thanks for the link!

It runs in bacth, so I will stick to the SDK.

I just wanted to be sure that my logic was correct.

answered Mar 5, 2013 by perbuus
Visma e-conomic A/S