function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ShaminaShamina 

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

Best Answer chosen by Admin (Salesforce Developers) 
Lawrence-AccentureLawrence-Accenture

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

Lawrence-AccentureLawrence-Accenture

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

This was selected as the best answer
Lawrence-AccentureLawrence-Accenture

Sorry, he uploaded the fix on the 14th, not the 18th... :)

ShaminaShamina

Thanks Lawrence :)