Office 365 API $ top API not honored by delta requests

The Office 365 Graph API documentation suggests that $ filter and $ top operations should be supported when used together on request delta ...

https://developer.microsoft.com/en-us/graph/docs/concepts/delta_query_messages#track-message-changes-in-a-folder

However, when executing a query that uses both $ filter and $ top, for example:

https://graph.microsoft.com/beta/me/mailfolders/AAMkADQ3MDg1NWRmLTUxMGQtNDRiMi1iMGE4LTAzMzdjNGRiYTIxNQAuAAAAAADEPuholyn_QpUTAqAAAAAAAEAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA TOAA $ filter = receivedDateTime% 20ge% 202017-04-01T00: 00: 00Z & $ top = 1000

We find that the top value of $ is not applied, and the default value of 10 results per page is used. However, the $ filter was applied correctly.

When testing without the $ filter operator, we find that the value of $ top is applied as expected.

Is this a bug in the Graph API, or am I not understanding something? Thanks in advance.

+6
source share
1 answer

I could not get the result using the parameter $topwith delta.

But the optional title odata.maxpagesizementioned in the same document seems to work.

You can try adding this to your request headers. Prefer:

odata.maxpagesize=1000
0
source

Source: https://habr.com/ru/post/1016439/


All Articles