Filter Companies by Name

Hi,

We have a need to find a specific company by name and unless I missed something, it does not appear as if this can be done.  I am able to filter by custom fields but surprisingly not company name.  The need for this is follows:


1) We attempt to add a company via api and receive 'name already exists' (or similar) error.

2) Now we want to query the api for this company by name to find the internal FD id so we can update our records and then update the company.


I have tried https://mydomain.freshdesk.com/api/v2/search/companies?query="name:'abcde'"


but it fails with a validation error with the field being "name" and the message being "unexpected/invalid field in request".


Is it possible to query via the API to find a company by name? Thank you!

error.png
(27.9 KB)
Login or Signup to post a comment