Explore Courses Blog Tutorials Interview Questions
0 votes
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:

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?


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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers


104k users

Browse Categories