Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

size limit for searches

Open folkertvanheusden opened this issue 1 year ago • 1 comments

Hi,

Using client.search.query_messages(query).execute_query() I'm searching for certain e-mails. By default the number of returned hits is around 20. How can I set that to the maximum allowed by office365? And is there a way of continuing the search of that maximum is reached?

folkertvanheusden avatar Oct 23 '24 07:10 folkertvanheusden

I tried adding it myself (see https://github.com/folkertvanheusden/Office365-REST-Python-Client/tree/907 ) but it does not seem to work, altough the parameters end up in the query:

{'requests': [{'query': {'queryString': 'a'}, 'entityTypes': ['message'], 'sharePointOneDriveOptions': {}, 'rowLimit': 30, 'startRow': 50}]}

(see startRow and rowLimit)

folkertvanheusden avatar Oct 31 '24 07:10 folkertvanheusden