APIs & Integrations

IP8
Participant

Deal to Contact association API returns wrong objectIDs

SOLVE

I am trying to get contact associations with a given dealID and the API returns wrong contactIDs.

When I send 

https://api.hubapi.com/crm/v3/objects/deal/5771682053/associations/contact

I get 

{"results":[{"id":"1101","type":"deal_to_contact"},{"id":"1755","type":"deal_to_contact"},{"id":"2001","type":"deal_to_contact"},{"id":"2151","type":"deal_to_contact"}]}

And thoses IDs are not contacts.

I also tried 

/crm/v3/associations/deal/contact/batch/read and even version 1

V1/crm-associations/v1/associations/5771682053/HUBSPOT_DEFINED/3 with the same result.

 

Deal to company associations work fine

1 Accepted solution
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Deal to Contact association API returns wrong objectIDs

SOLVE

Hi @IP8,

 

I went ahead and made the same call on a test portal and got this response:

{
  "results": [
    {
      "id": "6901",
      "type": "deal_to_contact"
    }
  ]
}

And looking at this response the "6901" is the ID of the assocaited contact. If you take those ID's that you recieved and tried searching for them directly within the HubSpot search do see any of the contacts show up?

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

View solution in original post

4 Replies 4
IP8
Participant

Deal to Contact association API returns wrong objectIDs

SOLVE

Yes, it all works fine now. It must be just me 🙄

Thanks for your help

 

0 Upvotes
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Deal to Contact association API returns wrong objectIDs

SOLVE

Hi @IP8,

 

I went ahead and made the same call on a test portal and got this response:

{
  "results": [
    {
      "id": "6901",
      "type": "deal_to_contact"
    }
  ]
}

And looking at this response the "6901" is the ID of the assocaited contact. If you take those ID's that you recieved and tried searching for them directly within the HubSpot search do see any of the contacts show up?

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

TiphaineCuisset
Community Manager
Community Manager

Deal to Contact association API returns wrong objectIDs

SOLVE

Hi @IP8 

 

Thank you for reaching out.

 

I want to tag some of our experts on this - @JBeatty @himanshurauthan @tjoyce do you have any thoughts on this for @IP8 ? 

 

Thank you!

Best

Tiphaine


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !


himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Deal to Contact association API returns wrong objectIDs

SOLVE

Hello @IP8,

 

Can you please make sure that you are checking for the correct deal?

 

Because we are using this API a lot and it works as expected for us.

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology