Quantcast
Channel: e-conomic Global API Forum
Viewing all articles
Browse latest Browse all 2527

PHP Soap Get Project List

$
0
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..
 

 


Viewing all articles
Browse latest Browse all 2527

Trending Articles