How to fetch latest 10 conversations in a ticket

Hi Team,

Is there any possible way to fetch latest 10 conversation of a ticket?

Thanks,
Tejasri

Hi,

Can anyone help me on this as this high priority

Thanks,
Tejasri

Hi @Tejasri_Kalluri,

We have API’s in freshdesk to fetch the latest 10 conversations using the endpoint
/api/v2/tickets/[id]?include=conversations

In case you need to fetch all the conversations in a ticket. Check the following end point.
/api/v2/tickets/[id]/conversations

Hope it helps

2 Likes

Hi @sarfaraz_Mohammed,

/api/v2/tickets/[id]?include=conversations

i have used this, here it is returning from starting(first conversation of the ticket to 10th conversation) not returning latest 10 conversations and in document clearly mentioned that “will return up to ten conversations sorted by “created_at” in ascending order.” but i need in descending order this there any possible way

/api/v2/tickets/[id]/conversations

this returning all conversations upto 30

actually my requirement is suppose having 45 conversations in a ticket, there need to fetch latest 10 conversations of that ticket, without pagination can you help in this

Warm Regards,
Tejasri.

1 Like

Hi @Tejasri_Kalluri

Unfortunately i din’t find API to get the latest 10 conversation without pagination.
What are you trying to achieve using the conversation details? (eg : display conversation details, email address etc)

Thanks,
Sarfaraz

1 Like

Hi @sarfaraz_Mohammed,

when i create a child ticket need to fetch latest 10 conversationss from parent and post in the child ticket. But iterating all conversations some times leads to API rate limits and timeout issues as it is SMI. So to resolve this I need the latest 10 convs. If there are any filters also it may be helpful like sort_by etc.

Thanks,
Tejasri

Hi @Tejasri_Kalluri,

I couldn’t find the right API or the right filter on any API. Let me check with Freshdesk product team if there’s any other way or workaround for this.

Otherwise I will take it up a feedback to pass it to the product team.

1 Like

Hi @Raviraj,

ok sure, Thank you and let me know if you find any way for this

Thanks,
Tejasri

Hi @Tejasri_Kalluri

Just a quick thought will it be possible that you can fetch all the ticket conversation details before making SMI call and send the conversation payload as an argument in SMI call.

1 Like

@Tejasri_Kalluri This is currently not possible with Freshdesk API.

I will take it up as a feedback to pass it to the Freshdesk product team.

Please consider if @sarfaraz_Mohammed’s suggestion would work as a workaround. But, I suspect this would cause Request API rate-limit breach.

1 Like