I'm trying to get the value of a custom field in salesforce. I'm trying to use this sample code:
And add the custom field name to the select. The select works, however, my output does not contain the custom field (only the other fields in my select).
$response = $client->query(SELECT Id,Name, Custom_field__c from Account limit 5);
I've also tried using the retrieve() method instead of query() but that is giving me the same problem.
You basically need to get a new WSDL out of the account. If the WSDL doesn't have the fields you don't see them in your response.