Open sharma-akshay opened 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.
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.