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.
How to change the execution order of Catalog UI Policies in Catalog Items and Variable Sets - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to change the execution order of Catalog UI Policies in Catalog Items and Variable Sets
KB0657359

How to change the execution order of Catalog UI Policies in Catalog Items and Variable Sets


4002 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

How to change the execution order of Catalog UI Policies in Catalog Items and Variable Sets



Overview


This article helps to understand the order of execution of Catalog UI Policies, and the usage of the system property glide.sc.ui_policy.variable_set_run_first. These aspects are important when designing Catalog Items.


Catalog UI Policies can be found in a Catalog Item, or in a Variable Set. As described in the documentation below, out of the box, Catalog UI Policies on Variable Sets will run first, followed by Catalog UI Policies on Catalog Items.

Ref.:
https://docs.servicenow.com/csh?topicname=r_ServiceCatalogProperties.html&version=latest
https://docs.servicenow.com/csh?topicname=c_ServiceCatalogUIPolicy.html&version=latest

A Variable Set contains common variables that will be used in many Catalog Items. Within in a Variable Set, you might want to make a variable mandatory. In order to do this, you will need to create a Catalog UI Policy within the Variable Set.

However, for a particular Catalog Item, you might not want that variable to be mandatory or hidden. To avoid this, create a Catalog UI Policy on the Catalog Item. UI Policies for catalog items always take precedence over UI Policies for variable sets. Catalog UI Policies will run last, meaning the variable will not be mandatory.

The mentioned property glide.sc.ui_policy.variable_set_run_first will reverse the order.

The default value for this property is true.  Variable Set UI Policies run first, Catalog Item UI Policies run last.

If you notice that your UI Policies are running in an odd or unexpected order, check the value of this property an ensure that it is set to true.

Setting this property to false is not recommended. Always design your Catalog UI Policies across Catalog Items and Variable Sets around the documented run order: Variable Sets first, Catalog Items last.

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.