Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Best Practices – System Properties - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Best Practices – System Properties
KB0538866

Best Practices – System Properties


33764 Views Last updated : Jan 28, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

This article describes how system administrators can manage script behavior by creating system properties to use in scripts. Best practices include:

Table of Contents

  • Best Practices Video
  • Using System Properties
  • 1. Using system properties instead of hard-coded values
  • 2. Defining and using a naming convention
  • 3. Grouping properties into categories
  • 4. Creating a Properties page to display properties

Best Practices Video

Using System Properties

System properties are maintained in the System Property table [sys_properties]. You can access this table via the module navigator, or directly typing sys_properties.list in the Navigator Filter.

 Warning: System properties store configuration information that rarely or never changes. Each time you change or add a system property, the system flushes the cache to keep all nodes in the cluster in sync. This cache flush might cause temporary performance issues to the instance if done excessively. As an alternative to a system property to store configuration information that changes more than once or twice a month, you can use instead a custom table to store regularly changing configuration information.

Release

  All Releases

Resolution

1. Using system properties instead of hard-coded values

When required values are hard-coded into the server-side scripts, changes to these values must be manually adjusted in every script where they appear. To save time and maintenance, create system properties so that your scripts can use the values contained in those properties. When a system change is required, changes made to a single system property can be implemented system-wide.

2. Defining and using a naming convention

Define and use a naming convention that makes the property easy to manage. This allows users to filter custom properties from the hundreds in the system properties list.

To define a property:

  1. Create a property name with the company name.
  2. Add the application or process name (or both) using a dot notation to separate the elements.
  3. Add a description that is short and meaningful. If the property refers to a script, include the script name. For example, cd.default.assignment_group.
  4. To create system properties for the values:
    1. Navigate to System Properties
    2. Check for an existing property with the needed functionality before creating a new one.
    3. Click New
    4. In the Name field, enter cd.default.assignment_group (for example).
    5. In the Description field, enter the default assignment group description.
    6. From the Type choice list, select String.
    7. In the Value field, enter the corresponding value for the default assignment group.
    8. Submit

3. Grouping properties into categories

To create a category to group properties:

  1. Navigate to System Properties > Categories.
  2. Click New
  3. In the Name field, enter the new category.
  4. In the Description field, enter the category description.
  5. Right-click the form header and select Save.
    The properties-related list is now displayed.
  6. Click Edit.
  7. Select the properties and add them to the new category.

4. Creating a Properties page to display properties

The Properties page gives easy access to all of the properties in one place. To display properties, create a new module under the appropriate application menu.

  1. Right-click the application and select Edit Application Menu.
  2. In the modules-related list, click New.
  3. In the Title field, enter Properties.
  4. In the Link type field, select URL (from Arguments).
  5. In the Roles field, select admin.
  6. In Order, use the number where this should appear on the application menu.
  7. Click the image icon.
  8. Select the Properties icon.
  9. For Arguments, use the system properties UI page.
  10. Submit

The property page now appears in the application menu.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.