Hi Hg,
Thank you for reaching out, Microsoft!
I attempted to retrieve channel messages without any OData query parameters, such as the $top
parameter, and noticed that the messages are still ordered by lastModifiedDateTime
. This implies that lastModifiedDateTime
is the default ordering, even though there is no explicit documentation stating that the List Channel Messages API returns responses in this order. The List Chat Messages API documentation does mention that lastModifiedDateTime is the default order in which messages are returned in the response.
Also please refer below doc which mentions only $top
and $expand
are Optional query parameters supported by List Channel Messages and it does not support explicit ordering.
Please check attached screenshot for reference:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".