Difference between next() and nextRecord() in servicenow GlideRecord

Roshini
Tera Guru

Hi Team,

Can I know the difference between next() and nextRecord() in ServiceNow GlideRecord.

Roshini_0-1719980388574.png

 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron

Hi there,

 

Both next() and nextRecord() serve to iterate through records in a GlideRecord query, with nextRecord() being more optimized for handling large data sets, potentially using less memory. 

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron

Hi there,

 

Both next() and nextRecord() serve to iterate through records in a GlideRecord query, with nextRecord() being more optimized for handling large data sets, potentially using less memory. 

Thanks for the information and quick reply

Can you please close this question?

 

Or is there follow-up needed?