Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 04:18 AM
Hi, I need a alternative way to remove getRowCount from these script by using glideRecord. Refer the below code as sample.i need suggestion as soon as possible.
Thanks,
sengeni
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 04:34 AM
It will do the same thing if you add a counter in the while loop VS getRowCount.
But that is something you can do alternatively
var loop_count = 0;
inside while
loop_count++;
-Anurag
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 05:01 AM
if you don't want to use getRowCount() to know the count, then you need to use GlideAggregate class
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader