You need to sign in to do that
Don't have an account?
Shamina
PHP toolkit 20.0 Query returns true for empty fields
Hello,
Am using PHP toolkit 20.0 to perform some queries on Salesforce Contact object but all empty field values on the record, return the value "true".
The queryresult below show the values returned for the query. The fields Phone and Birthdate are both empty for this contact. But the value "true" is returned.
$result = $crmHandle->query('SELECT Id, Phone,Birthdate FROM Contact LIMIT 1');
QueryResult Object ( [queryLocator] => [done] => 1 [records] => Array ( [0] => SObject Object ( [type] => Contact [fields] => stdClass Object ( [Phone] => true [LastName] => ContactName [Birthdate] => true ) [Id] => 003M0000006YESuIAO ) ) [size] => 1 )
Why is the result of the query for empty fields not a blank string or null ? Is there something I must change in the query or when processing the results ?
Thank you for your help
If you haven't downloaded the PHP library in the last few days, try doing that. Pat uploaded a new version that addresses this specific issue on the 18th.
See: http://boards.developerforce.com/t5/Perl-PHP-Python-Ruby-Development/PHP-Library-Broken/td-p/287327/highlight/false/page/2
-L
All Answers
If you haven't downloaded the PHP library in the last few days, try doing that. Pat uploaded a new version that addresses this specific issue on the 18th.
See: http://boards.developerforce.com/t5/Perl-PHP-Python-Ruby-Development/PHP-Library-Broken/td-p/287327/highlight/false/page/2
-L
Sorry, he uploaded the fix on the 14th, not the 18th... :)
Thanks Lawrence :)