Microsoft Graph - 过滤器 Start/DateTime
Microsoft Graph - Filter Start/DateTime
使用 Microsoft Graph 的 nodejs 库,尝试查询我的日历和 return 接下来的 5 个事件。
查询设置:
client
.api('/me/events')
.header('X-AnchorMailbox', email)
.top(5)
.filter('Start/DateTime ge 2017-05-26T00:00:00')
.select('subject,start,end')
.orderby('start/dateTime DESC')
执行时 Graph 回复:
"code":"BadRequest","message":"The DateTimeOffset text '2017-05-26T00:00:00.000' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range."
2017-05-26T00:00:00
不匹配'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?'
吗?
简单错误:
.filter(`Start/DateTime ge '2017-05-26T00:00:00'`)
使用 Microsoft Graph 的 nodejs 库,尝试查询我的日历和 return 接下来的 5 个事件。
查询设置:
client
.api('/me/events')
.header('X-AnchorMailbox', email)
.top(5)
.filter('Start/DateTime ge 2017-05-26T00:00:00')
.select('subject,start,end')
.orderby('start/dateTime DESC')
执行时 Graph 回复:
"code":"BadRequest","message":"The DateTimeOffset text '2017-05-26T00:00:00.000' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range."
2017-05-26T00:00:00
不匹配'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?'
吗?
简单错误:
.filter(`Start/DateTime ge '2017-05-26T00:00:00'`)