# validate contact

**URL:** <https://community.hubspot.com/t/validate-contact/28343>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [November 23, 2020, 1:46pm UTC](https://community.hubspot.com/t/validate-contact/28343 "2020-11-23T13:46:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rarayav](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rarayav/32/77060_2.png) [@rarayav](https://community.hubspot.com/u/rarayav)\
**Post date:** [November 23, 2020, 1:46pm UTC](https://community.hubspot.com/t/validate-contact/28343/1 "2020-11-23T13:46:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [November 23, 2020, 3:34pm UTC](https://community.hubspot.com/t/validate-contact/28343/2 "2020-11-23T15:34:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 23, 2020, 5:34pm UTC](https://community.hubspot.com/t/validate-contact/28343/3 "2020-11-23T17:34:31Z")

</div>

Thanks [@quentin\_lamamy](https://community.hubspot.com/t5/user/viewprofilepage/user-id/148828)

@rarayav each contact also has a [unique VID](https://legacydocs.hubspot.com/docs/methods/contacts/get_contact), but I am unsure if this is what you need

---

<div class="post-metadata">

**Author:** ![rarayav](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rarayav/32/77060_2.png) [@rarayav](https://community.hubspot.com/u/rarayav)\
**Post date:** [November 24, 2020, 12:46pm UTC](https://community.hubspot.com/t/validate-contact/28343/4 "2020-11-24T12:46:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [November 24, 2020, 12:50pm UTC](https://community.hubspot.com/t/validate-contact/28343/5 "2020-11-24T12:50:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rarayav](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rarayav/32/77060_2.png) [@rarayav](https://community.hubspot.com/u/rarayav)\
**Post date:** [November 24, 2020, 2:12pm UTC](https://community.hubspot.com/t/validate-contact/28343/6 "2020-11-24T14:12:00Z")

</div>

thanks for your help
