Skip to main content
Closed for Voting

Filter based on custom field

Related products:Freshdesk
  • August 18, 2014
  • 14 replies
  • 59 views

 I would like to filter based on a custom field using the API. The same was asked in this thread but it is now closed: https://support.freshdesk.com/support/discussions/topics/40850

14 replies

  • Community Debut
  • March 16, 2015

This is a much needed feature. Without it, custom fields aren't as useful!


  • Community Debut
  • December 12, 2015

Hi Freshdesk any update upon this ?


  • Community Debut
  • December 14, 2015

 Hi Freshdesk any good news about this request ?


  • Contributor
  • December 26, 2016

would be invaluable. Any project on this?


  • Community Debut
  • May 4, 2017

Would really like this for contacts GET method as well


  • Community Debut
  • May 5, 2017

We're having to now move all these custom fields over the FreshSales to manage them there, and then do a sync.  It's clunky and awful to manage.  It would be so much slicker to just be able to have that FreshSales functionality in FreshDesk.  Seems a little ridiculous that it doesn't. 


  • Community Debut
  • May 12, 2017

We use a custom field to store a "customer ID". In our CRM database this ID is the unique key for a customer. We need to be able to use the contact endpoint to search and retrieve a contact based on their ID.  Is this possible yet? 


 

It would be so nice to just be able to have this FreshSales functionality in FreshDesk.  It's about time, it would definitely make things a lot easier to manage.



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

Hello Folks,


Happy to let you know that we've the filter tickets API using which you can now filter for tickets using custom field data. Here's the magic link to the documentation .


Cheers!


this is implemented in the API but not in the UI.


  • Community Debut
  • September 26, 2018

This is much needed through UI too. I can not understand it is not yet possible. Thanks.


  • Contributor
  • December 4, 2019

I cannot get this to work with custom fields:


It returns no results but the field is there... here is the get request:


curl -v -u fresh-desk-server@xxxx:yyyy -H "Content-Type: application/json" -X GET 'https://catprint.freshdesk.com/api/v2/search/tickets?query="cf_orderid:B191204_672632"'


this returns no results, but there is indeed a ticket with OrderId: B191204_672632


What am I doing wrong???


FYI I have tried various combinations such as removing the cf_ (that is not documented but seems necessary) adding / removing quotes (%27) around the string, etc.



I also searched for the same ticket using other criteria and I see the fields are there. This is a partial json of the return of the search


"custom_fields":{"cf_internalorderid":123456,"cf_orderid":"B191204_672632"}


Finally I tried changing to a number field (cf_internalorderid) and it also does not work.



  • Community Debut
  • December 11, 2019

Hi 

I am also facing the same issue as Mitch has mentioned

below doesnot return any data, but there is definitely ticke with customer_id = 5788394511

https://freshdesk011help.freshdesk.com/api/v2/search/tickets?query="cf_customer_id:5788394511

Don't know is it because i am using trial account?


  • Contributor
  • December 16, 2019

I did not work for our account even though it was not a trial. They had to switch some feature on to make it (sort of) work.