get company name with ticket view API

  • 12 March 2018
  • 3 replies
  • 62 views

I am trying to get list of ticket using following API


https://mycompany.freshdesk.com/helpdesk/tickets/view/101844?format=xml&per_page=100&page=0&include=compnay_name


but this list returned by this doesn't include company name. I need to get the company name to which ticket is associated.



This topic has been closed for comments

3 replies

Userlevel 4
Badge +12

Hello Mohit,


The method that you're trying to use belongs to the V1 version of the API. We suggest you to try out the new V2 API and also migrate any applications running on V1 as it would be deprecated shortly. 


By default, the API would return company ID as a value along with tickets and you can poll another API call to fetch the company related information. Please have a look at our filter tickets API to achieve this : https://developer.freshdesk.com/api/#filter_tickets


Cheers!

The above API give me Json response


https://mycompnay.freshdesk.com/api/v2/search/tickets?query="Status:2%20or%20status:3"


Also it doesn't give me Responder Name, Requester Name and Company Name. To fetch that I need to make 3 calls to fetch all the information. It would be nice to get that in one go. Is there any API to fetch all the above fields in one go. 


Anything....