• TimoR
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I am trying to do an update a field to empty string using fieldsToNull, but it never works.

The following is the code:

  $fieldsToUpdate = array('Id'=>$ID,'Test__c'=>NULL);
  $sObject = new SObject();
  $sObject->fieldsToNull = $fieldsToUpdate;

  $rs = $mySforceConnection->update(array($sObject));

Please help...
 
Thanks