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
Mike @ PartnersMike @ Partners 

fieldsToNull isnt working

I am trying to update a Date feild in accounts to blank but i cant get it to work. The 'fieldsToNull' doesnt seem to be working. I dont get any errors or faults. Any ideas? Here is my code.
Thanks,
Mike


Code:
global $mySforceConnection;
    $fieldsToUpdate = array('Id'=>$AccountID);
    $sObject = new SObject();
    $sObject->fields = $fieldsToUpdate;
$sObject->fieldsToNull = array('Latest_PW_Date__c'); $sObject->type = 'Account'; $updateRespons = $mySforceConnection->update(array($sObject));
var_dump($updateRespons); return;

 

Tran ManTran Man
Check out PHP toolkit 1.0.6 and https://wiki.apexdevnet.com/index.php/PHP_1.0.x_Toolkit#FieldsToNull and let me know what you think.

Message Edited by Tran Man on 02-02-2007 03:42 PM

Mike @ PartnersMike @ Partners
That worked like charm.
Thanks.
Is this new toolkit backwards compatible? And if i update my partners WSDL will i run into any problems with my old php api apps?
Thanks agian,
Mike
Tran ManTran Man
Yes.

FYI, we are working on a PHP toolkit with support for the 8.0 API features.
Mike @ PartnersMike @ Partners
Awsome, Thanks for the help.
Mike