microsoft-graph – 按开始日期对事件排序
发布时间:2020-12-14 01:57:41 所属栏目:Windows 来源:网络整理
导读:我需要能够使用Microsoft Graph API在ASC / DESC的两个方向上获取事件.我正在尝试使用以下API来实现这一目标: https://graph.microsoft.com/v1.0/me/events?$orderby=start 但是,当我执行请求时,我收到以下错误: { "error": { "code": "BadRequest","messa
我需要能够使用Microsoft Graph API在ASC / DESC的两个方向上获取事件.我正在尝试使用以下API来实现这一目标:
https://graph.microsoft.com/v1.0/me/events?$orderby=start 但是,当我执行请求时,我收到以下错误: { "error": { "code": "BadRequest","message": "The $orderby expression must evaluate to a single value of primitive type.","innerError": { "request-id": "c00d676d-ef8e-418b-8561-80e08729da71","date": "2017-11-16T13:31:59" } } } 另外,我试图直接访问日期: https://graph.microsoft.com/v1.0/me/events?$orderby=start.dateTime 得到以下错误: { "error": { "code": "BadRequest","message": "The child type 'start.dateTime' in a cast was not an entity type. Casts can only be performed on entity types.","innerError": { "request-id": "240342f5-d7f6-430b-9bd0-190dc3e1f73b","date": "2017-11-16T13:32:39" } } } 有没有办法按ASC / DESC顺序按日期对事件进行排序? 解决方法
你非常接近但是你错误地引用了DateTime.正确的格式是{parent} / {child}.这些将起作用:
https://graph.microsoft.com/v1.0/me/events?$orderby=start/dateTime https://graph.microsoft.com/v1.0/me/events?$orderby=start/dateTime desc (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- exchange – 为其他人设置Out of Office消息
- windows-server-2008 – 将Hyper V图像转换为虚拟框
- Windows&C:extern&__declspec(dllimport)
- .net – 从开发角度来看:如何让老板们升级到Vista / Windo
- windows-store-apps – 应用程序通过WACK但未通过商店提交认
- 请确认:Windows Workflow Foundation是否现在正在支持的马
- Meteor作为本机OSX或Windows 8应用程序
- 基于windows使用fabric将gitlab的文件远程同步到服务器
- Windows安装TensorFlow
- 如何在Windows XP / Vista上创建临时文件的路径
推荐文章
站长推荐
热点阅读