APIs & Integrations

Astroraf
Member

Get all Ticket Properties from Private API call

SOLVE

I am trying to get all the properties given by the tickets created by my company.

 

Specifically, I am trying to get the status of the ticket, and the specific codes we used to identify agents in our company. 

 

My code goes as follows: 

Ticket_info = api_client.crm.tickets.get_all(properties=['ticket_status'])
 
but the property does not get filled in. I assume this is not how it is called in the API so is there a way to get a dictionary of all the attributes of the tickets made for my specific company? 
 
Also, is there documentation for python coders using hubspot API's?

 

0 Upvotes
1 Accepted solution
Astroraf
Solution
Member

Get all Ticket Properties from Private API call

SOLVE

Looking at the Properties part of HubSpot gives you all the properties your company uses. If you click or search for a property you need to intake into that the dataframe you create, it will give you the value on how it will be when asking for it in the properties keyword argument for get_all() function. 

 

Code goes as follows: 

 

Ticket_info = api_client.crm.tickets.get_all(properties=['Content', 'aff_code', 'arcid__including_this_expedites_your_service_'])
 
This is obviously pertaining to my company but this is how to get the values you specifically want in the properties key. 

View solution in original post

0 Upvotes
1 Reply 1
Astroraf
Solution
Member

Get all Ticket Properties from Private API call

SOLVE

Looking at the Properties part of HubSpot gives you all the properties your company uses. If you click or search for a property you need to intake into that the dataframe you create, it will give you the value on how it will be when asking for it in the properties keyword argument for get_all() function. 

 

Code goes as follows: 

 

Ticket_info = api_client.crm.tickets.get_all(properties=['Content', 'aff_code', 'arcid__including_this_expedites_your_service_'])
 
This is obviously pertaining to my company but this is how to get the values you specifically want in the properties key. 
0 Upvotes