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

CashBookEntry.CreateFromDataArray

0
Hi,

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.

_session.CashBookEntry.CreateFromDataArray(cashBookEntriesData);

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?

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

2 Answers

0
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:

http://e-conomic.github.com/eco-api-sdk-ref-docs/
answered Mar 4, 2013 by nkn
0
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.

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