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 cant make CashBook_FindByNumber

0
Hi Forum

I am using PHP.

Do anybody know why following do not work:

$CashBookHandle = $client->CashBook_FindByNumber(array('number' => $CashBookHandleNumber))->CashBook_FindByNumberResult;

I get the failure 'Undefined property' what ever i do.

But by some reason following search by name works fine. That is just not god for me.

$CashBookHandle = $client->CashBook_FindByName(array('name' => 'Omsaetning'))->CashBook_FindByNameResult;

Regards Christian
created Jul 31, 2013 by cheyn
87% Accept Rate

edited Jul 31, 2013 by cheyn
Q 15 A 6 C 7

1 Answer

0
 
Best answer
Could you provide me with the error-id, that the service returns?
answered Aug 1, 2013 by mortenanders
selected Aug 21, 2013 by cheyn
Actually I dont get an error ID from e-conomic. I get following PHP-notice:

Undefined property: stdClass::$CashBook_FindByNumberResult ...

On the other hand following works fine (if you see the similarity):

$CashBookHandle = $client->CashBook_FindByName(array('name' => $CashBookHandleName))->CashBook_FindByNameResult;

Also when i replace $CashBookHandleNumber with 5 or '5' it fails.

Why do the one speak about undefined proberty when the other works?
Visma e-conomic A/S
...