---
title: "Scripted REST API Resource With Hard-Coded sys_ids"
description: "Impact Area Manageability Severity Medium Affected Element N/A ## Rule ID **SN-RESTAPI_HARDSYSID** ## Impact Hard coding sys_ids makes the system more difficult to manage, and less able to move functionality between instances. ## Remediation Create a system property to store…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/servicenow-rules/scripted-rest-api-resource-with-hard-coded-sys_ids/"
updated: "2025-03-21"
category: Rules
---

# Scripted REST API Resource With Hard-Coded sys_ids

Impact Area

Manageability

           Severity

Medium

           Affected Element

N/A

## Rule ID

**SN-RESTAPI_HARDSYSID**

## Impact

Hard coding sys_ids makes the system more difficult to manage, and less able to move functionality between instances.

## Remediation

Create a system property to store the name of the record (not the sys_id) for easier manageability. The script can use gs.getProperty() to retrieve the record and use the sys_id. If the named record was not found, an error can be displayed appropriately.

### Time to fix

40 min
