create leads

This commit is contained in:
Alvaro Campos
2011-01-19 19:37:32 +00:00
parent 5b6cb08ca4
commit 81101e0f1f

View File

@@ -386,7 +386,7 @@ function CreateSugarOpportunity($sugarSoap, $user, $password, $name,$account_id,
*/
function CreateSugarLeads($sugarSoap, $user, $password, $first_name, $last_name, $email, $title, $phone, $account_id, $resultType="array") {
$module = "Leads";
$module = "Leads";
$sessionId = sugarLogin ( $sugarSoap, $user, $password );
$client = new SoapClient ( $sugarSoap, array ('trace' => 1 ) );