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
aboydaboyd 

php_sforce_nusoap - can't update a lead?

I'm using php_sforce_nusoap.  I've got code that gets the ID of a lead, then attempts to add to that lead's data.  Getting the ID is fine.  But after the update, I check the record in SalesForce, and it is unchanged.  Why?

$queryResult = $sfdc->query("SELECT id, Email FROM Lead WHERE Email='$email'");
if (isset($queryResult['records'][0]['Email'])) {
 $contact1 = new sObject(
  'Lead',
  $queryResult['records'][0]['id'],
  array(
   'DownloadedFiles' => $temp_data['urls']
  )
);
 $updateResult = $sfdc->update($contact1);
}

Message Edited by aboyd on 11-08-2005 12:35 PM