Milcho Dimkov
12/12/2023, 11:57 AMrunSuiteQLPaged
please?
I want to be able to return more than 5,000 records in a restlet, but I don't find any suitable explanation on the Internet. I can't figure out how to iterate through the pages : )
Thanks!Shai Coleman
12/12/2023, 12:21 PMrunSuiteQLPaged
you're limited to 100,000 results, and it might be slower than doing the pagination via SQL.
Also, I'm not sure the pagination always gives consistent results - i.e. might give duplicate records or skip records if the underlying data changes between pagination requests.
There's also the ROWNUM technique hack, but I don't recommend it
https://timdietrich.me/blog/netsuite-suiteql-pagination/
If you can pagination via SQL based on the the IDs would be better, e.g. WHERE id > 1234
replacing 1234 with the last fetched IDShawn Talbert
12/12/2023, 3:15 PMShai Coleman
12/12/2023, 3:41 PMShawn Talbert
12/12/2023, 4:08 PMShai Coleman
12/12/2023, 4:58 PMShawn Talbert
12/12/2023, 6:21 PMShawn Talbert
12/12/2023, 6:23 PMMilcho Dimkov
12/12/2023, 8:15 PMShai Coleman
12/13/2023, 9:29 AMMatt Bernstein
12/14/2023, 4:12 AMShawn Talbert
12/14/2023, 5:08 AM