Hi,
My client is running BC 365 on an Azure server of which I do not have configuration access. Using OData v4 I am trying to set a MaxPageSize using Prefer header -- see PS1 snippet below:
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add('Accept','Application/Json')
$headers.Add('Api-Key' , [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($actualKey)))
$headers.Add('OData-MaxVersion','4.0')
$headers.Add('OData-Version','4.0')
$headers.Add('Prefer', 'odata.include-annotations=*, maxpagesize=5, odata.maxpagesize=5')
$headers.Add('Content-Type' , 'application/json')
(The maxpagesize/odata.maxpagesize part is taken from the OData specification).
The Max Page Size directives are being ignored and there is no Preference Applied header in the response.
Does BC 365 OData V4 support the Prefer header? If so, which server setting change has to be made?