what is the signance of set limit function

Kishore Babu S
Tera Contributor

what is the signance of set limit function

5 REPLIES 5

vinothkumar
Tera Guru

Hi Kishore,



setLimit() function lets you to limit the number of gliderecord that returns after satisfying the gliderecord condition.



Let say, after querying a table, you are getting 100 records and you want to limit for ten records then use setLimit(10); to your glide record condition.