Hiren Patel
Hiren Patel

Reputation: 1

EWS FindItems returns only 250 items in Exchange 2016

I have an application which uses EWS Managed API to search and retrieve items from Exchange server. On one client environment (Exchange 2016 on-premise server), when application tries to search and retrieve items from Archive MailBox folders using AQS query, the API seems to only return 250 items even though folder has more items that meets search query. The pagesize i request is 500, but the response only has 250 items.

Anyone know why FindItems() method only returning only 250 items?

Is there any throttling policy we need to disable? This is for Exchange 2016 Server.

Upvotes: 0

Views: 401

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49455

By default, Exchange limits the maximum number of items that can be returned in a single request to 1000. But setting the maximum number of entries to a smaller number results in quicker response times, at the cost of having to send more requests to get all items. So, it seems Exchange admin reduced the max number of items that can be returned in a single request.

Upvotes: 0

Related Questions