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
Ricky MartinRicky Martin 

How to update Lead using PHP

Hi,
I have connect and create the new lead by using php but unable to update so how to update the fileds.

When click the submit button: (create lead).

//Creating the Lead Object
     $lead = new stdClass;
     $lead->type = 'Lead';
     $lead->fields = array(
          'FirstName' => $leadFirstName,
          'LastName' => $leadLastName,
          'Company' => $leadCompany,
          'Email' => $leadEmail,
    'Country' => $leadCountry
     );

     //Submitting the Lead to Salesforce
     $result = $connection->create(array($lead), 'Lead');

When CLick Second Button:
Have to update?

Thanks.
AmitSahuAmitSahu
have you tried update method from the webservice