Closed gasyleiss closed 7 years ago
Hey @gasyleiss,
Can you check how many records you retrieve by setting
headers: [ { key: "Prefer", value: "odata.maxpagesize=1" }]
on your request?
Kind Regards, Florian
Hey @gasyleiss,
I suppose this is an issue in fetch xml queries. The paging cookie will be received in the fetchxml response and the paging cookie should also be set in the xml, which is currently not done.
Can you please check, if the following query using queryParams works?
var request = {
entityName:"contact",
async:true,
returnAllPages:true,
queryParams: "?$select=*&$filter=contains(fullname, '" + search + "')"
};
This uses request paging headers instead of the xml ones, which should work.
Kind Regards, Florian
Hello Florian, Sorry for the delay...:)
Best, Njaka
Hey Njaka,
the latest release (3.0.2) includes an implementation for automatic paging in retrieve by fetchXml requests. The test cases are passing and my tests in CRM were successful.
Please give me some feedback, whether it works for you as well.
Kind Regards, Florian