alex2k8
alex2k8

Reputation: 43214

EWS. How to get latest SyncState without initial synchronization?

Consider that I have 100,000 messages in a folder. I want to be able to synchronize with latest changes, but I don't need any old messages. Asking for initial synchronization with

SyncFolderItems(..., null /*syncState*/)? 

would bring back all 100,000 messages (that I don't need). How can I jump directly to the latest SyncState without reading 100,000 entities from server?

Upvotes: 7

Views: 1573

Answers (1)

Henning Krause
Henning Krause

Reputation: 5422

You can't work around that. You need to iterate through the collection once. After you have processed all existing entries, the syncstate should be much smaller than your 143kb.

Upvotes: 3

Related Questions