Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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