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

How can I use Debtor_CreateFromData?

I would like to use Debtor_CreateFromData instead of calling multiple set functions. How can I create the object requested by Debtor_CreateFromData?

created Dec 23, 2009 by ecodyr
0% Accept Rate
Q 6 A 10 C 1

1 Answer

Found the answer myself. I can do it like:

$debtorData = new StdClass();
$debtorData-IsAccessible = 1;

set all the other fields needed and then call

$client-Debtor_CreateFromData(array('data' = $debtorData));

answered Dec 24, 2009 by ecodyr
Visma e-conomic A/S