Skip to main content

Last updated: 2024-06-07


CheckDuplicateContact Method


In this topic:


Overview


The CheckDuplicateContact method checks the contact information submitted in the request XML against existing contacts in the SmartOffice database. The method returns a value of true or false to indicate whether a matching contact exists. You can check for duplicates by first name, last name, Tax ID and birth date.


The CheckDuplicateContact method is invoked using the method operation.


Parameters


Parameter NameTypeRequired?Description
LastNameStringYesLast name
FirstNameStringYesFirst name
TaxIDStringNoTax ID/Social Security Number
DobStringNoBirth date

Example


This request checks for a duplicate record for a contact named Genevieve Bates:


XML
<request version='1.0'>
  <header>...</header>
  <method>
    <CheckDuplicateContact>
      <LastName>Bates</LastName>
      <FirstName>Genevieve</FirstName>
      <TaxID>111111111</TaxID>
      <Dob>09-08-1968</Dob>
    </CheckDuplicateContact>
  </method>
</request>

The response indicates that a duplicate was found:


XML
<response version="1.0">
  <header>
    <sessionClosed/>
  </header>
  <method>
    <CheckDuplicateContact>true</CheckDuplicateContact>
  </method>
  <_status>OK</_status>
  <_systime>2015-06-09T18:30:22</_systime>
  <!--Cost 25 mill seconds.-->
</response>