I’m trying to get a ticket using the idProperty, and it’s not working. I am testing it using the api simulator in Accounts Dashboard | HubSpot, and I’m putting a valid api key, a valid property name, and a property value, for which an existing ticket is supposed to be matched, but it doesn’t work.
Do I need to mark this property as an “ID” property? If so, how can I do that? I don’t see any way in the property edit form.
Hi @yinonby,
Which endpoint are you using? There’s the GET request and you have to specify the ticketId. There’s also the Search CRM POST request and that’s where I am guessing you are specifying the property name and value.
We’ll say my idProperty is called id-prop-name (it’s a custom property), and its value is 1234, so in the ticketId I put “1234”, and in the idProperty I put “id-prop-name”.
Ah I see now. You won’t be able to use the GET request with a custom property. You’ll have to use the Search CRM request. It’s 3 requests below that in the documentation.
/crm/v3/objects/tickets/search
There you can do a POST request to search for a ticket matching your custom property value.
Hope that helps!