Skip to main content

When creating a custom app, we don't have information about the type of field for custom fields. How can we know doing a API request if a field is a dropdown, string, integer, etc. ?

If this is now possible, I would like to raise it as a feature request. 

Hi @sgutierrez,

 

Could you elaborate on the API you are using? The “List all Ticket Fields” API does provide details on the type of ticket fields so I’m wondering if you’re referring to something else.

https://developers.freshdesk.com/api/#list_all_ticket_fields


Hi @Sona_Senthil,

Let me elaborate. We are trying to do a custom app to synchronize between Freshsales and Freshservice, so when an account is created in Freshsales, the department is created in Freshservice. 

If we want to do this app generic, we don’t know the custom fields that are created in both systems. For the mapping, the custom fields need to be the same field type. So if we do a GET from Freshsales on an account details we get a list of fields and custom fields like the image below,

how do we know from that list which ones are integer? string? dropdowns? etc. There is no information on the request result.


Hi @sgutierrez,

 

Thanks for elaborating on your requirement. I think you would need to make a separate GET call to get the list of all fields and then compare with the Account details GET response to identify the field type.

You can review the “Get a list of all fields” API call in the following API doc in case you haven’t yet had a chance to see if suits your requirement - 

https://developers.freshworks.com/crm/api/#list_of_all_fields_in_your_custom_module

Example: https://account.freshsales.io/api/settings/sales_accounts/forms

 

Regards,

Sona 

Freshdesk, Freshchat, Freshcaller product expert

Are you interested in learning more about how our services can help add value to your business? Check out our Professional Services to know more & get started.