APIs & Integrations

dabid
Membro

Search contacts: need to get all contact's properties

resolver

Hello all, I would like to know if there's a way to get all contact's properties (not only the default ones) without typing them all in the 'properties' array (kind of burdensome especially if we have plenty, but moreover it's not so flexible if some new properties are added later via hubspot admin app).

 

A kind of wilcard would be great (tested just in case, but it fails :))

0 Avaliação positiva
1 Solução aceita
RMones
Solução
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

Search contacts: need to get all contact's properties

resolver

Hi @dabid ,

 

You can try to do this with the Schema API.

 

https://api.hubapi.com/crm/v3/schemas/contacts

There will be an entry in the response with all the properties they exist on the Contact records.

 

You can create a object from the properties there and add them to the next call.

 

Greets Ronald

Exibir solução no post original

4 Respostas 4
dabid
Membro

Search contacts: need to get all contact's properties

resolver

Sounds good @RMones , I'll try this. Thank you both for your responsiveness

0 Avaliação positiva
RMones
Solução
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

Search contacts: need to get all contact's properties

resolver

Hi @dabid ,

 

You can try to do this with the Schema API.

 

https://api.hubapi.com/crm/v3/schemas/contacts

There will be an entry in the response with all the properties they exist on the Contact records.

 

You can create a object from the properties there and add them to the next call.

 

Greets Ronald

camera
Participante

Search contacts: need to get all contact's properties

resolver

Hello people,

 

I'm trying to do the same thing, but I didn't figured out how to the Schema API will be helpful.

 

We have more than 600.000 contacts and more than 800 properties. So, the only way that I found, was to divide the properties in groups of 100 (there are a charactere limitation in the request that I don't know how many yet).

 

Then, we do a request 100 by 100 contacts for each group (a lot of requests!). And after that we will have to do a merge in the database to unify all the properties for each contacts.

 

Is there anything that I'm not seeing?

0 Avaliação positiva
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Search contacts: need to get all contact's properties

resolver

@dabid 

There is no way to do this with the API call, but I believe there is a library that can do this.

@quentin_lamamy , can you help out here?

0 Avaliação positiva