GlideRecord - getRowCount()

Retrieves the number of rows in the GlideRecord object.

Note: This method should not be used in a production environment as it creates a heavy load on the system. Instead, use GlideAggregate - Global.
Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number An integer count of the rows

Scoped equivalent

To use the getRowCount() method in a scoped application, use the corresponding scoped method: Scoped GlideRecord - getRowCount().