---
title: "GlideRecord And GlideRecordSecure Should Not Be Used In Service Portal Widget-Client Script"
description: "Impact Area Performance Severity High Affected Element Widget ## Rule ID ** SN-GLIDERECORD-USAGE-PWI-CLIENT** 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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/servicenow-rules/gliderecord-and-gliderecordsecure-should-not-be-used-in-service-portal-widget-client-script/"
updated: "2025-03-21"
category: Rules
---

# GlideRecord And GlideRecordSecure Should Not Be Used In Service Portal Widget-Client Script

Impact Area

Performance

           Severity

High

           Affected Element

Widget

## Rule ID

** SN-GLIDERECORD-USAGE-PWI-CLIENT**

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
