APIs & Integrations

RajeshGembrill
Membro

How to get associations in the search API endpoints

resolver

We are trying to fetch the filter tasks data in that we additionally required contact association. It is very hard to fetch the associated object by using many API calls which is very costly. Please suggest the possibilities ASAP.
Thanks In Advance

1 Solução aceita
Jaycee_Lewis
Solução
Gerente da Comunidade
Gerente da Comunidade

How to get associations in the search API endpoints

resolver

Hi, @RajeshGembrill 👋 Have you already looked into using the pseudo-property associations? Here is the documentation — Search through associations.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

Exibir solução no post original

15 Respostas 15
aravet
Participante | Parceiro Diamante
Participante | Parceiro Diamante

How to get associations in the search API endpoints

resolver

Hello,

Yes i'm running in the same issue. Would be really usefull to get that functionnaly ! Any news on that ? @Jaycee_Lewis 

Thanks,
Antoine,

ISlonim
Participante

How to get associations in the search API endpoints

resolver

Any news on this? running into the same issue, and this is impacting a lot of hubspot customers who already have an issue with the limited CPQ capabalities and are considering switching to a different platform - 

 

@Jaycee_Lewis

0 Avaliação positiva
snehal268
Participante

How to get associations in the search API endpoints

resolver

Hey @Jaycee_Lewis ,

Can we get the association records in repose data in Search API? Why Search API dose not support associations as parameter?

 

Regards,

Snehal

 

0 Avaliação positiva
FSoto8
Participante

How to get associations in the search API endpoints

resolver

reopen this, because hubspot api dont response correctly.

0 Avaliação positiva
Jaycee_Lewis
Solução
Gerente da Comunidade
Gerente da Comunidade

How to get associations in the search API endpoints

resolver

Hi, @RajeshGembrill 👋 Have you already looked into using the pseudo-property associations? Here is the documentation — Search through associations.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

snehal268
Participante

How to get associations in the search API endpoints

resolver

Hey @Jaycee_Lewis 

Can we get the association records in repose data in Search API? Why Search API dose does not support associations as parameters?

 

0 Avaliação positiva
gdforj
Membro

How to get associations in the search API endpoints

resolver

Hi,

 

In the current state, the search API does not yield the associations.

One has to make additional requests per each found object to get its associations.

This results in a much bigger number of requests, which can run into the API rate limitations very quickly.

 

In order for the API to be effective and useful, it needs to return the associations directly in the search response.

 

Could we get some visibility to when this issue will be resolved? This is quite important to integrate HubSpot reliably to other softwares.

KTefft
Participante

How to get associations in the search API endpoints

resolver

The accepted solution needs to address the issue. Are there any plans to add this functionality?

FSoto8
Participante

How to get associations in the search API endpoints

resolver

please create an issue with this.

Anonymous
Não aplicável

How to get associations in the search API endpoints

resolver

I'm facing the same problem. I need the companies associations to be returned in the response when searching through contacts. Is this possible on the search API?

FSoto8
Participante

How to get associations in the search API endpoints

resolver

please create an issue post to hubspot fix this.

0 Avaliação positiva
COSmith
Participante

How to get associations in the search API endpoints

resolver

Hi @Jaycee_Lewis - can you please reopen this issue - this is not an acceptable solution. 

 

The requirement is to return associations information in the response body, not to filter by them.

 

I am trying to return contact information for the `ticket` objects via the search api and cannot do so. This is a major defect in your API and makes having this endpoint completely useless. Please can you address this ASAP?

 

request_type = 'POST'
url = 'https://api.hubapi.com/crm/v3/objects/ticket/search'
header = {"authorization": "Bearer ", "content-type": "application/json"}
data = {
"properties": [
"hubspot_owner_id",
"hs_pipeline",
"category",
"hs_ticket_category",
"content",
"hs_submission_name",
"source_type",
"associations.contact.id"
],
"limit":100,
"filterGroups": [{"filters":[{"propertyName":"source_type","operator":"EQ","value":"CHAT"}]}]
}

FSoto8
Participante

How to get associations in the search API endpoints

resolver

please create an issue to hubspot fix this.

RajeshGembrill
Membro

How to get associations in the search API endpoints

resolver

Hi, @Jaycee_Lewis

Thanks for the reply.
The documentation which you shared says, to use associations for filters. But my requirement is to get association details in response data.

Thanks In Advance,
Rajesh Kumar.A
tclark228
Membro

How to get associations in the search API endpoints

resolver

Hi @RajeshGembrill , @iCos  did either of you ever find a way to do this?