Zoho Desk Deluge to retrieve latest comment
Zoho Desk Deluge to retrieve latest comment
For those working with Zoho Desk and looking to access the most recent comment on a ticket, there's a straightforward approach using custom functions. While the API documentation provides details on listing all comments, you can efficiently retrieve just the latest one by incorporating specific parameters.
Previously, users might define latestThread to get the most recent thread. However, to get the latest comment, you can use a similar invokeurl structure. The key is to add parameters that sort by commentedTime in descending order and limit the results to just one.
Alternatively, for those utilizing Zoho Desk's built-in Deluge tasks, you can use zoho.desk.getRelatedRecords. This method also allows you to specify sorting and limits to efficiently retrieve the latest comment.
Source: ZoHo Desk Deluge - Custom Function - Retrieving Latest Comment