You need to sign in to do that
Don't have an account?

How do you update a field to null?
Here is basically what I do.
$sObject1 = new SObject();
$sObject1->fields = $fieldsToUpdate;
$sObject1->type = 'Lead';
$sObject1->Id = $record->Id;
$response = $mySforceConnection->update(array ($sObject1));
This works great until I change a value to null. :)
You need to use the FieldsToNull sObject property. It's in the API documentation. There are samples:
http://wiki.developerforce.com/index.php/PHP_Toolkit_13.0_FieldsToNull_Sample_%28Enterprise%29
http://wiki.developerforce.com/index.php/PHP_Toolkit_13.0_FieldsToNull_Sample_%28Partner%29
-paul
All Answers
You need to use the FieldsToNull sObject property. It's in the API documentation. There are samples:
http://wiki.developerforce.com/index.php/PHP_Toolkit_13.0_FieldsToNull_Sample_%28Enterprise%29
http://wiki.developerforce.com/index.php/PHP_Toolkit_13.0_FieldsToNull_Sample_%28Partner%29
-paul
fieldsToNull is broken in the enterprise PHP toolkit when nulling more than one field.
It may be an underlying issue in the PHP SoapClient on which the toolkit depends, but broken is broken.