We recently faced an issue with the data methods in Freshdesk.
While switching the tabs the app used to call this “client.data.get(“time_entry”)” data method to fetch the time entries and it returns the invalid data yet, the API returns the expected value.
@Bene_Immanuel,
Good day!
you mean the values which you are getting by using data method is wrong?
if so, possible can you please share us the sample for our reference?
@Bene_Immanuel
The updated_at timestamps also differ between the screenshots by ~2mins.
Is it possible, the data API was hit earlier than the REST API call and there was an action (maybe in a different session or by someone else) meanwhile?
If the app has already fetched the timers, it will return those data instead of making a brand new API request.
If the client.data.get(…) was hit immediately after the app inits, you are likely to get the latest data at that point in time.
I have attached the full screenshots for the API response and the Data method’s response.
These are from the same minute, there was no delay of more than a minute.
If the data methods return the existing data, at least it should make a new API call and update itself if there’s a change?
Is this the expected flow or…?
Please help us out!