Skip to main content

How to use Custom Views in API

  • December 20, 2011
  • 12 replies
  • 234 views

Requirement : How to make use Custom Views in the API ?

 

Example:

  • To view tickets in Unassigned queue, assigned to myself and colleague Andrew
  • Tickets in Open,pending status

 

Steps to follow : 

  • Go to Tickets Tab -->> Select the filters -->> AGENTS - Me,Andrew,Unassigned; STATUS - Open,Pending. 


                                                                                

 
  • Save this view --> My View
                                                                 
  • Each Custom View saved has a View ID.
  • Address bar shows the View ID : 12200

                                                                 


Use this View ID in the API to view all the tickets

 

                                                                 

This topic has been closed for replies.

12 replies

  • Contributor
  • December 28, 2011

You might want to increase the size of those screenshots or add the lightbox support, so that you can click on it to view in its original size including the ability to continue to the next screenshot. If I can't see what it looks like, I'm not sure the value of having them here. 


  • Community Debut
  • November 29, 2012
Can you please tell me a concrete example for the API URL you are using to request a view?

What is the URL to which we should be making a call to get the details of tickets in a particular custom view (say 12184)?

Figured out a way.

Make a curl request to  http://support.freshdesk.com/helpdesk/tickets/view/93481 with header "Accept: application/xml" and send username and password as usual i.e., using -u username:password or curl_setopt($ch, CURLOPT_USERPWD, "username:password"); in PHP

  • Contributor
  • July 8, 2013

Can anyone post the exact curl request to be made, I tried shal request but it is showing "HTTP/1.1 406 Not Acceptable error"


the exact request I made was `curl -i -H "Accept: application/xml" -u API_KEY:X https://{domain}.freshdesk.com/helpdesk/tickets/view/View_ID`


I also tried using `curl -i -H "Accept:application/xml" -u API_KEY:X "https://{domain}.freshdesk.com/helpdesk/tickets.xml?filter_name=View_name&page=1"`


  • Contributor
  • July 9, 2013

Freshdesk support gave me this answer

https://{domain}.freshdesk.com/helpdesk/tickets/view/View_ID?format=json

for now its owrking have to try on more data 


Thank you guys, it will be more helpful if forms is active :)


  • Community Debut
  • November 11, 2016

How does this work with the API V2?


aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

Helo Marco,


Good day ! As of now, we don't have this option in API V2 but it is bound to be added soon. We will update the topic once the custom view support on V2 is available :)


Cheers!


  • Community Debut
  • June 13, 2018

Hi ! 


Just a quick note to ask if this has been implemented in the v2 of the API now? The last update was over 2 years ago. Thanks !



aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

@Nikita Did you get a chance to look at the filter tickets API?


Cheers!


  • Contributor
  • July 2, 2018

Hi...filter ticket work with custom fields ?


tks...


aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

@Willian Yes, it works with custom fields (Single line, dropdown, checkbox and Number type fields).


Cheers!