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

Account_GetAll() with Account name?

Hi all devs.

Is it possible to get all accounts with name, number & type in a single web service call or do I have to iterate through the list returned by Account_GetAll and call Account_GetName for each?

created Jul 10, 2013 by MikkelSnitker
100% Accept Rate
Q 1 A 0 C 0

1 Answer

Best answer

You are only receiving handles for all accounts which consists of a number, so yes you need to get the data of the handles also.

But you only need one more call.

Say that you have got a array of account handles account_handles. Then you can call the Account_getDataArray and use account_handles as argument. Then use receive all data for all accounts in account_handles, and this is done in one single round-trip

answered Jul 15, 2013 by mha
selected Jul 17, 2013 by Jostein
Visma e-conomic A/S