Freshdesk API - Search / Filter ticket on custom ticket fields not working

Running the following query

https://.freshdesk.com/api/v2/search/tickets?query=%22cf_sub%3A%20’test’%22

Where cf_sub is a valid custom field.

Query always return
{“results”:,“total”:0}

Trying with built-in field like

query=%22priority%3A1%22

returns the records we want

Is this a known issue?

2 Likes

Hi @dcohendumani ,

Welcome to the Freshworks developer community :smiley:

Can you try to query the custom field with the Suggested query params below as per the alternate documented in the Example 4 of the Filter Tickets API.

Suggested Query Param: https://.freshdesk.com/api/v2/search/tickets?query=%22custom_string%3Atest%22

Let us know if this works!

3 Likes