Search contacts: need to get all contact's properties

SOLVE
dabid
Member

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 Upvotes
1 Accepted solution

Accepted Solutions
RMones
Solution
Contributor

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

View solution in original post

3 Replies 3
dennisedson
Community Manager

@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?

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes
RMones
Solution
Contributor

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

View solution in original post

dabid
Member

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

0 Upvotes