syncLead creates duplicate
Hello -
My developer is using the syncLead for the web service API to push info from a custom form to Marketo, and when someone submits the form, it is creating two records simultaneously in Marketo - below is what he is sending to Marketo - any help would be greatly appreciated:
$arguments=array(
'leadRecord'=>array(
'Email'=>$email,
'leadAttributeList'=>array(
$this->getAttribute('FirstName',$firstname),
$this->getAttribute('LastName',$lastname),
$this->getAttribute('Email',$email),
$this->getAttribute('Phone',$phone),
$this->getAttribute('Country',$country),
$this->getAttribute('PostalCode',$postalcode),
$this->getAttribute('new_usertype_lead',$usertype),
$this->getAttribute('new_formname',"SPX Trial"),
$this->getAttribute('LeadSource',"SPX Trial"),
),
),
'returnLead'=>false,
);
$arguments=array('paramsSyncLead'=>$arguments);
return $this->client->__soapcall('syncLead',$arguments,null,$this->getAuthenticationHeader());
Thanks,
Mike