I'm reaching out because I need some help. I’m new to English, so please forgive me if my sentences sound strange.
I’m building a bot that categorizes and reports information posted on HubSpot. Since I’m new to HubSpot, I’m still learning how things work.
Here’s what I’m doing: I retrieve the Record ID from a Ticket and use the Association API to get information from the desired category. However, when I try to fetch Company data linked to a specific Ticket using its Record ID, I get a 404 error.
The strange thing is that on the HubSpot site, the Company information is properly associated with the Ticket.
Here are my questions:
1. Are the Record IDs for Tickets and Companies displayed differently? 2. Is there a way to retrieve data for a category other than using the Record ID?
Hello @JLee28, thank you for reaching out to our Community and no worries your explanation is clear! I’m happy to help.
The Record IDs for Tickets and Companies are unique and cannot be used interchangeably. A Ticket Record ID represents a Ticket, while a Company Record ID corresponds to a Company. To access a Company linked to a Ticket, you’ll need to use the Associations API to retrieve the associated Company ID first.
Once you have the Company ID, you can then use it to fetch the Company details via the CRM Objects API. The 404 error occurs when attempting to fetch Company data directly using a Ticket Record ID.
Hello @JLee28, thank you for reaching out to our Community and no worries your explanation is clear! I’m happy to help.
The Record IDs for Tickets and Companies are unique and cannot be used interchangeably. A Ticket Record ID represents a Ticket, while a Company Record ID corresponds to a Company. To access a Company linked to a Ticket, you’ll need to use the Associations API to retrieve the associated Company ID first.
Once you have the Company ID, you can then use it to fetch the Company details via the CRM Objects API. The 404 error occurs when attempting to fetch Company data directly using a Ticket Record ID.