You are here

function salesforce::convertLead in Salesforce Suite 5.2

Same name and namespace in other branches
  1. 5 includes/salesforce.php \salesforce::convertLead()

perform lead converts.

@access public

Parameters

mixed $leadConverts either a single LeadConvert object or an array of LeadConvert objects:

Return value

mixed LeadConverResult complex types. (See WSDL.)

File

includes/salesforce.php, line 310

Class

salesforce
salesforce

Code

function convertLead($leadConverts) {
  $param = array(
    'leadConverts' => $leadConverts,
  );
  $this->result = $this->client
    ->call('convertLead', array(
    'parameters' => $param,
  ), '', '', false, true);
  return $this->result['result'];
}