I have been working with the Freshdesk REST API for the past few months now and have been experiencing a frustrating issue. When I create an entity (either a company or a contact) via a POST request, I get a return code of 200 indicating the entity has been successfully created, however, if I immediately try to retrieve that entity via the unique identifier I’m storing in a custom field (using the Filter Contact/Company functionality, which is still in beta) it will tell me no results are returned. I have to continually retry and eventually it will fetch the newly created entity but this delay can be anywhere from 5-60 seconds. Has anyone else experienced this?
What I’ve done as a workaround for the time being is created a for loop that continues to retry fetching the newly created entity every 15 seconds after it has been created and doesn’t break that loop until it is successfully fetched and then moves onto the next steps of my processing. This is, however, an inefficient way to operate and an excessive use of GET calls. Ideally when the POST endpoint returns a success code I should be able to immediately use a GET call to retrieve that record and have it be returned, but that’s not currently the case. If anyone from Freshdesk is looking at this, is this a known issue that’s being worked on? Other members of the community do you have any better suggestions for dealing with this?