Contact->save no doing duplicate check?
-
I noticed in your demo video you say we don’t have to worry about adding a new contact or updating an existing because the plugin already handles that,
But when I submit my contact form, it is creating a new contact both times, when the information I enter is identical. I’m not sure how the dup check is failing? Does it dup check ALL fields? Or just email and phone?
Here is the code I am using:
$contact = new Infusionsoft_Contact(); $contact->FirstName = $_POST['firstname']; $contact->LastName = $_POST['lastname']; $contact->Email = $_POST['email']; $contact->Phone1 = $_POST['phone']; $contact->OwnerID = $infusionsoft_id; $contact->ContactNotes = $_POST['message']; $contact->LeadSourceId = 30; $contact->_AppointmentLocation = $_POST['prp_address']; //Save the contact to Infusionsoft $newContactID = $contact->save();
In my test, every POST field was identical, and the $infusionsoft_id variable was the same as well, but it still created 2 contacts, with identical information.
Any ideas?
Thanks,
Matt
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Contact->save no doing duplicate check?’ is closed to new replies.