You need to sign in to do that
Don't have an account?
Web Department
No "fields" attribute (to access the results) in Partner WSDL query response
I'm following this (https://developer.salesforce.com/page/Tksample.php) tutorial and trying to performing a simple query with my SforcePartnerClient object...
Any idea what might be wrong?
$query = "SELECT Id, FirstName FROM Contact" $response = $mySforceConnection->query($query); foreach ($response->records as $record) { echo $record->fields->FirstName; }...but the above code doesn't output anything. Looking at it in the debugger shows that "fields" is null. It DOES, however, seem to have the proper SOAP results inside "$record->any".
Any idea what might be wrong?
That sample code is out of date. I'll go update it right now.