The following odata parameters and preferences can be set when making calls to the Web Service.
odata.metadata
When making web service requests, the Web Service Header odata.metadata parameter should be set.
In the Web Service MaxBasic Example, this is set in the line:
Http.SetRequestHeader("format","odata.metadata=full")
This can be set to none, minimal or full. If this is not explicitly set it defaults to minimal.
For more information, see the OData format for Controlling the Amount of Control Information in Responses.
odata.maxpagesize
When dealing with large datasets, the odata.maxpagesize preference can be set to limit the number or records contained in a response collection.
The maximum number of responses that can be returned is set in Web Service Settings. Any maxpagesize set must be below or equal to the maximum number of responses set in the Web Service Settings.
In MaxBasic, the maxpagesize could be set as:
Http.SetRequestHeader("prefer","odata.maxpagesize=50")
This can also be set by specifying &pagesize=n in the URL, or pagesize=n in a header.