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

PHP Soap Get Project List

0

Hi there..

New to this .. Got a connection to economic - but need a list of projects with their handles (to do a dropdown) 

 

Tried 

 
$projectHandles = $client->ProjectGroup_GetAll();
$projectDataObjects = $client->Project_GetDataArray(array('entityHandles' => $projectHandles))->Project_GetData();
 
And got an error 
 
 Call to undefined method stdClass::Project_GetData() in
 
anyone ?
 
/Lars
 
 
Edit:
The "play around till it works" - seems to bring results..
 
 
$projectHandles = $client->Project_GetAll()->Project_GetAllResult->ProjectHandle;
$projectDataObjects = $client->Project_GetDataArray(array('entityHandles' => $projectHandles))->Project_GetDataArrayResult->ProjectData;
 
seems to do the trick..
 

 

closed with the note: Fixed
created Aug 16, 2016 by osomanden
0% Accept Rate

closed Aug 16, 2016 by osomanden
Q 4 A 0 C 1

Visma e-conomic A/S
...