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

DebtorGroup not retrieved

0
Starting out with the API, I've tried fetching all the Debtors, and it seems to go fine.

I can output the various data with
echo $debtorData->Number;
echo $debtorData->Name;
echo $debtorData->CINumber;
...and so forth.

As far as I can see, there is also a DebtorGroup property of the Debtor object. So I should be able to output the debtor group with

echo $debtorData->DebtorGroup;

Right?

But I can't. Nothing is output.

Does anyone have any pointers?
created Oct 4, 2014 by villumsign
100% Accept Rate
Q 2 A 1 C 0

1 Answer

0
 
Best answer
Nevermind.

Just found out the Data object doesn't contain a DebtorGroup, but rather a DebtorGroupHandle. So I have to go

echo $debtorData->DebtorGroupHandle->Number;
answered Oct 4, 2014 by villumsign
Visma e-conomic A/S
...