Once the contact object is loaded with the appropriate data, operations on that data begin. Identify the specific actions to be taken, such as processing an address to improve quality and homogeneity, or generating a matchkey to detect duplicate records. Search for errors by checking the return value of each command:
if (!ProcessAddress(&myServer,
&myContact,
-1 /*Acceptable Validation Level*/,
60 /*Inner Matchscore Threshold*/,
0 /*Outer Matchscore Threshold*/))
{
cout << "Error processing address: "
<< getLastError(&myServer)
<< endl;
return -1;
}
if (!GenerateMatchkey(&myServer, &myContact))
{
cout << "Error generating matchkey: "
<< getLastError(&myServer)
<< endl;
return -1;
}