Back

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

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

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...