Skip to main content
Hi,

I have an object with milions of records and would like to extract it from salesforce. As the number of lines is very big, I get a timeout error or the job is failing. How can I devide the query into partitions. I was trying to use the funtion to get the minimum Id and Maximum Id, but now when I try to query the first 2000 records, I don't know what is the next Id (after 2000 records) that I should start my next partition from.

So my question, by having a specific Id, how can I know what is the Id after 2000 records?
1 answer
0/9000