I know we can use nextlink to pull more records but some time if I want to pull just 100 records in one API call request, I prefer to have a easy way - change the page size.
Does anyone know how to do this?
I have the response to a call regarding this topic.
INFOR Response:
For LN the choice was made to limit this to 100 entities per page. We have chosen to be conservative, to protect Infor LN's infrastructure against response size that become too big too handle. The main reason is, that 100 entities can already result in a response that becomes very large: each of these entities could have, e.g. 200 properties, and in case of $expands, at several levels, you easily get 100 headers, with each 100 lines with each 100 details, which is a total of 100 * 100 * 100 = 1.000.000 entities!
The parameter cannot be modified.
Thanks José Luis Rodrigues, do you know where to change to 100?
In the HTTP request HEADER, we can setup the max page size in the Prefer(odata.maxpagesize=100).
Prefer string (header)
Use this to request certain behavior from the service. The value of the Prefer header is a comma-separated list of preferences, e.g.: odata.maxpagesize=10, odata.track-changes=true, return=minimal. It depends on the service what values are supported