- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 09:20 PM
Hi Team,
Can I know the difference between next() and nextRecord() in ServiceNow GlideRecord.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 09:23 PM - edited 07-02-2024 09:24 PM
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.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 09:23 PM - edited 07-02-2024 09:24 PM
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.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 09:29 PM
Thanks for the information and quick reply

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 09:35 PM
Can you please close this question?
Or is there follow-up needed?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field