how to use setLimit I have total record as 30 and i want the records to be stored in batches

Santosh Oraon
Tera Expert

hello everyone ,I have requirement that..

how to use setLimit I have total record as 30 and i want the records to be stored in batches like if Batch =10 , then first 10 records are stored in my final array then , next 10 then, next 10 like that .

I am writing this script but only first 10 records are stored , i want in batches 

SantoshOraon_0-1683249304884.png

thanks everyone

.

5 REPLIES 5

@Chaitanya Redd1  gr.setOffset() is not working