validate contact

Hello, I wanted to see if there is a way to validate that the contact already exists with a property other than email, for example DNI and that if it exists, do not make a new contact

Hi @rarayav
Hubspot use the contact email as primary key, and i don’t think you can change that. I will ping someone who maybe have the information @dennisedson

Thanks @quentin_lamamy

@rarayav each contact also has a unique VID, but I am unsure if this is what you need

I explain my business, we are a foundation where some of our clients do not have an email address and they donate to us directly, to identify them we only have their DNI, so if we do not use that property they are repeated.

How are you inserting data in HS ? If it’s a custom integration based on the api juste retrieve a list of all your contact hubspotId => DNI, keep it in memory and when importing check if you have this DNY in memory

thanks for your help