You need to sign in to do that
Don't have an account?
Ricky 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.
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.
AmitSahu
have you tried update method from the webservice