Microsoft Teams聊天消息按查询参数排序

问题描述

我尝试使用Ms-Graph API以及查询参数“ OrderBy”来检索我的Ms-Teams Chat(直接/群组)消息,以使用“ createdDateTime”对响应进行排序,但是我遇到了此错误

{
    "error": {
        "code": "","message": "The query specified in the URI is not valid. Query option 'OrderBy' is not allowed. To allow it,set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings.","innerError": {
            "message": "Query option 'OrderBy' is not allowed. To allow it,"date": "2020-08-20T07:28:36",}
    }
}

还有其他方法可以相对于“ createdDateTime”以升序检索我的Ms-Teams聊天(直接/群组)消息响应吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)