---
title: GlideRecord Usage On Portal Widget Client Scripts
description: "Impact Area Performance Severity High Affected Element Client Scripts ## Rule ID **SN-GRUPWCS** ## Impact The client side GlideRecord object is often inefficient, because it returns lots of unnecessary data. GlideRecord and `g_form.getReference` are both involved. ## Remediation Use client data as…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/gliderecord-usage-on-portal-widget-client-scripts/"
updated: "2025-03-21"
category: Rules
---

# GlideRecord Usage On Portal Widget Client Scripts

Impact Area

Performance

           Severity

High

           Affected Element

Client Scripts

## Rule ID

**SN-GRUPWCS**

## Impact

The client side GlideRecord object is often inefficient, because it returns lots of unnecessary data. GlideRecord and `g_form.getReference` are both involved.

## 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
