I'm in an odd situation, I need to generate a paging cookie for CRM that would ordinarily be generated by the CRM Service (more on why below) however I can't find it's schema or any documentation covering it.
The format I've deduced is as follows, can anybody confirm it's complete?:
<cookie page="{page no#}">
<{first sort column logical name} first="{value of first returned items sort column - format unknown}" last="{value of last returned items sort column - format unknown}" />
</cookie>
My situation is I've written a RetrieveMultiple plugin which returns a pseudo entity which actually exists in an external database, since the organisation service isn't fetching the data I cannot rely on CRM to provide this value for me.
The paging cookie is required to iterate over OData queries, even though it will be completely ignored by my plugin which is free to use its own logic, I'm being cought by the validation message WHENEVER I include a skip
querystring parameter:
[-2147220715]: Paging cookie required to retrieve more records. Update your query to retrieve with total records below 5000
Is there any way to suppress this error message?
I have done an investigation into the paging cookie format, these are my findings, I will update these findings time permitting if new features become apparent.
The paging cookie is an HTML encoded string, I'd love to write this up as a proper schema if I had the time but for now a functional design will have to do:
first="Active" last="Inactive"
&#xA;