We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Need suggetion for getRowCount()

Sengeni
Tera Contributor

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.

Sengeni_0-1707221862087.png

Thanks,

sengeni

 

1 ACCEPTED SOLUTION

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@Sengeni 

if you don't want to use getRowCount() to know the count, then you need to use GlideAggregate class

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader