We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Anyone know how to select the top 5 rows using a gliderecord query?

DrewW
Mega Sage

Anyone know how to select the top 5 rows using a gliderecord query? Trying to avoid a loop counter.

6 REPLIES 6

DrewW
Mega Sage

setLimit works, cool, thanks.


Christopher_Mal
ServiceNow Employee

Thanks.