APIs & Integrations

TimMunro
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

CRM Associations V4 (Beta) Pagination Bug

resolver

Trying to use the V4 (beta) associations API, found API responses do not include required pagination details. According to API docs:

https://developers.hubspot.com/docs/api/crm/associations/v4

 

The call to this URL:

GET/crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}

 Should return results & pagination details thus:

{
  "results": [
    {
      "toObjectId": 0,
      "associationTypes": [
        {
          "category": "HUBSPOT_DEFINED",
          "typeId": 0,
          "label": "string"
        }
      ]
    }
  ],
  "paging": {
    "next": {
      "after": "string",
      "link": "string"
    }
  }
}

 

In testing found that the "paging" property is never returned. In the test we created a company (ID=7181446321) that had 600 contacts associated (verified from the HubSpot UI). The GET to crm/v4/objects/COMPANY/7181446321/associations/contact returned this raw response (499 other associations removed for brevity):

{
  "results": [
    {
      "toObjectId": 38351,
      "associationTypes": [
        {
          "label": null,
          "typeId": 280,
          "category": "HUBSPOT_DEFINED"
        },
        {
          "label": null,
          "typeId": 2,
          "category": "HUBSPOT_DEFINED"
        }
      ]
    },
	{"note": "removed 499 other associations for brevity"}
 ]
}

 

You can see there is no "paging" property in the response. Documenting here so this issue can be routed to the HubSpot development team for resolution.

 

Thanks!

 

 

 

 

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

CRM Associations V4 (Beta) Pagination Bug

resolver

Fyi, found the issue and it is being worked on. I imagine fix will be pushed early next week

Exibir solução no post original

0 Avaliação positiva
5 Respostas 5
Yasar
Membro

CRM Associations V4 (Beta) Pagination Bug

resolver

Hi Team,

For Association Object we are still having same issue , where pagination is not return in API response.

For contact to contact association we have created 700+  records but still we are not seeing Paging property in API response .

 

can you please let us know after how many record we Can see the Paging property  ?

we also raised issue here .

 

Thanks,

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

CRM Associations V4 (Beta) Pagination Bug

resolver

@TimMunro ,

Thanks for reporting.  Have sent to the team 👍

dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

CRM Associations V4 (Beta) Pagination Bug

resolver

Fyi, found the issue and it is being worked on. I imagine fix will be pushed early next week

0 Avaliação positiva
EBomarsi2024
Participante

CRM Associations V4 (Beta) Pagination Bug

resolver

Hi Dennis. Our team just hit this recently, so it seems it was not resolved. See new bug: What is the pagination size for V4 Association entity following end point 

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

CRM Associations V4 (Beta) Pagination Bug

resolver

Thanks, have tested and this bug is resolved.

0 Avaliação positiva