Hello,
I’m looking to get all data from a cURL request to the API, so I would like to know if I could turn off the pagination?
Many thanks,
Shaun.
Hello,
I’m looking to get all data from a cURL request to the API, so I would like to know if I could turn off the pagination?
Many thanks,
Shaun.
I asked the question on StackOverflow - looks like no one knows the answer there either.
https://stackoverflow.com/questions/53284352/suitecrm-rest-api-switch-off-pagination
Regards,
Shaun.
You don’t say which SuiteCRM version, or which API version, but I recommend using the latest re-write of API v8, on 7.10.10. You will have to use a “size” param and you can get all records that way
https://github.com/salesagility/SuiteCRM/blob/hotfix/Api/V8/Param/PageParams.php#L15
Thanks,
Here’s some infos:
Version 7.10.9
Sugar Version 6.5.25 (Build 344)
API v8.
So, I send a size parameter as -1 then?
Regards,
Shaun.
I don’t know, this is all new, and I’ve never used it. Sorry.
It’s best if you try, and you can always check the source code to see what is happening after your call.
If you find things that can be improved in the new Documentation, please edit those pages and add them. Thanks.
There are lots of things that can be improved the in the documentation, like making it a factual document. But unfortunately I’m on a burn down to launch and I don’t have the time.
Regards,
Shaun.
Ok Shaun
Good luck with your project!
Cheers