nmarus / node-ews

A simple JSON wrapper for the Exchange Web Services (EWS) SOAP API.
MIT License
116 stars 52 forks source link

Number of items returned by FindItem #128

Open sharma-akshay opened 4 years ago

sharma-akshay commented 4 years ago

Hi All,

I am reading a mailbox having 20000 emails using FindItem. The json is:

var ewsArgsforFindItem = { 'attributes': { 'Traversal': 'Shallow' }, 'ItemShape': { 't:BaseShape': 'IdOnly', 't:AdditionalProperties': { 't:FieldURI': { 'attributes': { 'FieldURI': 'item:Subject' } } } }, "IndexedPageItemView": { 'attributes': { 'BasePoint': 'Beginning', 'Offset': '0', 'MaxEntriesReturned': 5000 } }, "SortOrder": { "t:FieldOrder": { "attributes": { "Order": "Ascending" }, "t:FieldURI": { "attributes": { "FieldURI": "item:DateTimeReceived" } }
} }, 'ParentFolderIds' : { 'DistinguishedFolderId': { 'attributes': { 'Id': 'inbox' } } } };

It is returning me only 1000 items and not all.

What needs to be done? Please advice.