Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of items returned by FindItem #128

Open
sharma-akshay opened this issue Sep 1, 2020 · 0 comments
Open

Number of items returned by FindItem #128

sharma-akshay opened this issue Sep 1, 2020 · 0 comments

Comments

@sharma-akshay
Copy link

sharma-akshay commented Sep 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant