Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I'm trying to get the value of a custom field in salesforce. I'm trying to use this sample code:

http://wiki.developerforce.com/index.php/PHP_Toolkit_20.0_Query_Sample_(Enterprise)

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.

Any ideas?

Thanks!

1 Answer

0 votes
by (32.1k points)

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.

Browse Categories

...