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.
UI Policy having 'javascript:gs.getProperty' in the condition does not work in Agent workspace - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • UI Policy having 'javascript:gs.getProperty' in the condition does not work in Agent workspace
KB0830016

UI Policy having 'javascript:gs.getProperty' in the condition does not work in Agent workspace


3199 Views Last updated : Apr 6, 2023 public Copy Permalink
KB Summary by Now Assist

Description

A UI Policy which has 'javascript:gs.getProperty("propertyName")' in the condition is not working on Agent workspace.

Steps to Reproduce

1- Create a system property with the below data:
Name: test.caller.sys_id
Type: String
Value: <sys_id of "ITIL User">

2- Create a UI policy on incident table with the below data:
Condition: Caller is javascript:gs.getProperty("test.caller.sys_id")
OnLoad : checked
Reverse if false : checked
global : checked
Run scripts : unchecked

3- Create the below UI Policy Action on this newly created UI Policy, this is to make "Assigned to" field as visible and mandatory on the incident form when caller is "ITIL User":
field name: assigned_to
Mandatory: true
visible: true
readonly : read alone.

4- Access Agent workspace and Open a new incident record and select caller as "ITIL User". Notice "Assigned to" is not visible.

5- Open a new incident in native UI and select caller as "ITIL User". "Assigned to" is shown as expected.

6- On agent workspace open any existing incident which has caller "ITIL User". "Assigned to" is shown as expected.

7- Open a new incident and set the caller as "ITIL User". "Assigned to" is not visible.

Workaround

This problem is under review and targeted to be fixed in a future release. To receive notifications when more information becomes available, subscribe to this Known Error article by clicking the Subscribe button at the top right of this form.


Related Problem: PRB1410185

Potentially Seen In

There is no data to report.

Fixed In

Rome

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.