You need to sign in to do that
Don't have an account?
Andy Peel
"limit" query parameter doesn't work with REST API
My resultset is restricted to 2000 records, even though I'm asking for 50. Example query URL:
https://blah.my.salesforce.com/services/data/v20.0/query?q=SELECT+Name+FROM+Contact&limit=50
Docs here describe limit query parameter: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_search_suggest_queries.htm?search_text=limit
https://blah.my.salesforce.com/services/data/v20.0/query?q=SELECT+Name+FROM+Contact&limit=50
Docs here describe limit query parameter: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_search_suggest_queries.htm?search_text=limit
Checkout this site [1] to URL encode your query. I'd recommend using the RFC2396 mode to replace spaces with +
[1] http://www.albionresearch.com/misc/urlencode.php
If I change it to a +, the limit becomes part of the query, which might work in SQL, but not in SOQL. I tried it and got MALFORMED_QUERY.