TIme entries in freshdesk

Hi team,

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.

Could you please, help us out here!

Thanks in advance.

@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?

Thanks

Hi @Santhosh,

Good day!

Sorry for the delay in response.

This is the API response
image

And this is the response from the data method

Hi @Santhosh,

Good day!

Sorry for the delay in response.

Please ignore the last reply, sent that by mistake.

BTW, this is the response from API.
image

And this is the response from the data method.

image

As you can see, the timer in the ticket is stopped and yet, the data methods return the wrong data.

Could you please help us out here?

Thanks,
Benny

@Bene_Immanuel,

seems like there is an issue with the data returning from the product, let me check with the product team and get back to you at the earliest

Thanks!

@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.

Hope this helps

1 Like

Hi team,

Apologies for the delayed response.

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!


Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.