Checking duplicates thorugh the API

Hi everybody,

I’m trying to understand the difference in the response from the API when creating a contact and with using the check for duplicate option. Both responses come back in the form of a USERID.

How can I tell if the USERID was created as a new one, or if it was a Duplicate? I would like to start a campaign sequence only when the user is a duplicate. Any suggestions?

You would need to precede your call with a query if you want to know that it first exists. You can query the LastUpdated or DateCreated fields or just the Id and if one is returned then you have an existing contact. The thinking with the addWithDupCheck method is that it avoids the need to do this while the add method will blindly add a new record.