---
title: Use of GlideRecord and getRowCount
description: "Impact Area Scalability   Severity Medium   Affected Element Inline Script Access Control ## Rule ID **SN-0421** ## Impact  The client side GlideRecord/GlideRecordSecure object is often inefficient, because it returns lots of unnecessary data. ## Remediation   Use client data as…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/use-of-gliderecord-and-getrowcount/"
updated: "2025-03-21"
category: Rules
---

# Use of GlideRecord and getRowCount

Impact Area

Scalability

 

           Severity

Medium

 

           Affected Element

Inline Script

Access Control

## Rule ID

**SN-0421**

## Impact

 The client side GlideRecord/GlideRecordSecure object is often inefficient, because it returns lots of unnecessary data.

## Remediation

  Use client data as much as possible to eliminate the need for time-consuming server lookups. The top ways to get information from the server are g_scratchpad, and asynchronous GlideAjax lookup.

**Time to fix**

40 min
