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
phyroslam2phyroslam2 

Where is the necessarry class LeadConvert in the phptoolkit ver php5 1.0.5

Where is the necessarry class LeadConvert in the phptoolkit ver php5 1.0.5 ?, I think I need it to Use te convertLead call ?
Tran ManTran Man
Look for an updated toolkit by Dreamforce.  While you wait, you can do the following:

Code:
  $leadConvert = new stdClass;
$leadConvert->convertedStatus='Closed - Converted';
$leadConvert->doNotCreateOpportunity='false';
$leadConvert->leadId='00Q5000000DO0gJEAT';
$leadConvert->overwriteLeadSource='true';
$leadConvert->sendNotificationEmail='true';

$leadConvertArray = array($leadConvert);
$leadConvertResponse = $mySforceConnection->convertLead($leadConvertArray);

 replacing
00Q5000000DO0gJEAT
with your lead id.