Try our conversational search powered by Generative AI!

List recent posts or topics in forum



We want to list the latest posts in all rooms. The list should include both new topics and new replies then we filter out i.e the first 5 of that collection.

Can this be done using GetQueryResult? or do we have to first get all rooms and then loop through each topic?



Sep 18, 2009 10:48

I think you would have to run two queries, one TopicQuery getting the 5 last topics and one ReplyQuery getting the 5 last replies and merge the results, keeping the 5 last in total.

Sep 23, 2009 14:13

Another way of doing it is to set ChangeDate when you create a new Topic and then use that to sort your query. That way you will only need one query.

Nov 26, 2009 11:19
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.