---
title: Usage Of getMessage() Without Preloading Message Key
description: "Impact Area Performance Severity High Affected Element Client Scripts Rule ID **SN-0452** ## Impact The message keys available in Messages field are loaded when the form loads. When these keys are used with the getMessage function no additional call to…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/servicenow-rules/usage-of-getmessage-without-preloading-message-key/"
updated: "2025-03-21"
category: Rules
---

# Usage Of getMessage() Without Preloading Message Key

Impact Area

Performance

           Severity

High

           Affected Element

Client Scripts

Rule ID

**SN-0452**

## Impact

The message keys available in Messages field are loaded when the form loads. When these keys are used with the getMessage function no additional call to the server is needed. Conversely if the referenced key is not in the Messages field then a new request to the sys_ui_message table will be performed, which can impact the instance performance.

## Remediation

Use the Messages field on the client script record to load the message key being used in getMessage() function

**Time to fix**

15 min
