function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dsalkodsalko 

Why nextRecordsUrl returns only one record for LeadFeed? (REST API)

Hello

 

I've found that for some objects like LeadFeed. When I run query using REST API... I'm getting 2000 records on first page, but during next call I'm getting only 1 record per api call. This makes it almost impossible to get all the data without hitting api limits.

 

Any suggestion? Any help is appreciated.

 

Thanks!

dsalkodsalko

More about this issue.

 

Looks like REST Api query for "nextRecordsUrl" has the same limitation as queryMore, and if there is a column with type base64 it returns 1 record per response.

 

But if SOAP api returns actual base64 data, REST api returns only url to get binary data.

 

My question is why this limit happens in case of REST API?

 

 

Thanks.