I'm trying to get the most recent message for each conversationId in a specific folder from Microsoft Graph API. What OData query can get the most recent message for each conversationId from Microsoft Graph API?
I am using their query parameter syntax, but I can't get aggregation working so that I can use groupby.
$apply=groupby(conversationId, topcount(1, createdDateTime))
There are no error messages when using the above query. This is expected behavior for Graph API when it does not support the query. I suppose that either my query is wrong or it truly does not support aggregation.
Unfortunately, Microsoft Graph does not support aggregation.