I'm trying to return records I can see in my defined list I set up in Hubspot. I have a list that contains ticket info and associated data but the List API seems to just bring the json at the bottom back. Am I missing something? I also tried the search list call and same result. I'm expecting to see all records and columns I specified...
Go to the ticket properties to see the IDs of the properties you want to retrieve, and use what's in your portal (Settings > Properties > Select object tickets). For me, it's "hubspot_owner_id," and I don't have a "companyId" property, but it depends on your configuration. You can create this field and populate it with a workflow. Come back and tell us if you found the properties you want; if not, you may need to query the contact. If you don't want to query the contact associated with the ticket again, it's best to create the missing properties that you can populate with a workflow (when a ticket is created, retrieve the contact's company ID and insert it into the companyId property). All CRMs have different properties, so it is recommended to always check the property IDs before making API requests, especially when the ID is given by someone who does not have access to your portal 😉
I'll mark this as the answer because I didn't know you can define that and fill it in a workflow. I'm new to hupspot.
Further more I figure this out:
For anyone that stumble on this, I needed to add "&associations=company,contact" in the querystring and I can now see those ids, just not with the properties... They come back in their own JSON array.
Get the list membership API to retrieve the list tickets, this will provide you a list of all the tickets id inside that list, then you can use the ticket api to get the details/properties. I hope this will solve your problrm statement here.
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Get the list membership API to retrieve the list tickets, this will provide you a list of all the tickets id inside that list, then you can use the ticket api to get the details/properties. I hope this will solve your problrm statement here.
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Have a fantastic day and thanks so much in advance! Bérangère
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
The list I built is all closed tickets with the subject, close date, and a few others. The associated records I'm looking for is the companyId and the ticket ownerId (assigned to id).
I tried what you marked as the accepted solution but when I make that call, the properties "companyId" and "hs_ticket_owner_id" where ignored/did not come back with all the other ticket data. Therefore I had to un-mark this as a solution. Not sure why it was upvoted if it doesn't work either but am I missing something? I tried batch and then I decided to go back to just listing all the tickets for a sanity check:
Go to the ticket properties to see the IDs of the properties you want to retrieve, and use what's in your portal (Settings > Properties > Select object tickets). For me, it's "hubspot_owner_id," and I don't have a "companyId" property, but it depends on your configuration. You can create this field and populate it with a workflow. Come back and tell us if you found the properties you want; if not, you may need to query the contact. If you don't want to query the contact associated with the ticket again, it's best to create the missing properties that you can populate with a workflow (when a ticket is created, retrieve the contact's company ID and insert it into the companyId property). All CRMs have different properties, so it is recommended to always check the property IDs before making API requests, especially when the ID is given by someone who does not have access to your portal 😉
I'll mark this as the answer because I didn't know you can define that and fill it in a workflow. I'm new to hupspot.
Further more I figure this out:
For anyone that stumble on this, I needed to add "&associations=company,contact" in the querystring and I can now see those ids, just not with the properties... They come back in their own JSON array.