Outlook Rest API消息端点-无法通过“ ReceivedDateTime”过滤器返回一致的数据

时间:2018-09-28 18:06:09

标签: outlook outlook-restapi

在很多情况下,Microsoft Outlook Rest API在已知数据存在的时间范围内未返回消息的数据。例如,对于某些用户,如果我们在9月20日之后和9月28日之前用ReceivedDateTime查询消息端点的消息,那么我们只会从API返回一条消息,其返回的ReceivedDateTime是9月20日,没有@odata.nextLink或错误。如果我们随后在9月21日之后和9月28日之前使用ReceivedDateTime在消息端点查询消息,则我们将接收在该时间范围内发生的所有消息。似乎对于某些帐户,在特定的时间点上无法查询ReceivedDateTime过滤器。我们已经在许多不同的帐户和时间范围中看到了这一点,但是我们不确定是什么使帐户进入此状态,而无法手动触发此错误状态。可以提供有关此行为的任何信息将不胜感激。

示例:

September 20th, 2018 9:08 PM -> September 28th, 2018 5:33 PM = 1 Message

https://outlook.office.com/api/v2.0/Me/messages?%24top=50&%24filter=IsDraft+eq+false+and+ReceivedDateTime+ge+2018-09-20T17%3A08%3A29-04%3A00+and+ReceivedDateTime+lt+2018-09-28T13%3A33%3A05.942-04%3A00&%24select=IsDraft%2CConversationId%2CCategories%2CHasAttachments%2CToRecipients%2CSentDateTime%2CFrom%2CReceivedDateTime%2CParentFolderId%2CSubject%2CSender%2CReplyTo%2CCcRecipients%2CInternetMessageId%2CBccRecipients%2CInternetMessageHeaders%2CId%2CBody%2CCreatedDateTime

September 21st, 2018 9:08 PM -> September 28th, 2018 5:33 PM = 50 Messages + @odata.nextLink

https://outlook.office.com/api/v2.0/Me/messages?%24top=50&%24filter=IsDraft+eq+false+and+ReceivedDateTime+ge+2018-09-21T17%3A08%3A00-04%3A00+and+ReceivedDateTime+lt+2018-09-28T13%3A33%3A05.942-04%3A00&%24select=IsDraft%2CConversationId%2CCategories%2CHasAttachments%2CToRecipients%2CSentDateTime%2CFrom%2CReceivedDateTime%2CParentFolderId%2CSubject%2CSender%2CReplyTo%2CCcRecipients%2CInternetMessageId%2CBccRecipients%2CInternetMessageHeaders%2CId%2CBody%2CCreatedDateTime

0 个答案:

没有答案