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 use the CI Actions and Not Allowed CI Actions in the cmdb_ci field reference qualifier - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to use the CI Actions and Not Allowed CI Actions in the cmdb_ci field reference qualifier
KB0743131

How to use the CI Actions and Not Allowed CI Actions in the cmdb_ci field reference qualifier


2236 Views Last updated : Apr 8, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Description


In an OOB instance there are both a CI Action and Not Allowed CI Action defined. These two records are both used in the "new OpsStatusFilter('cmdb_ci').by('CreateTask').join()" part of the cmdb_ci field reference qualifier for the task table. The purpose is to prevent users from selecting retired CIs as a value for the "cmdb_ci" field in task records. Users can create the own CI Actions and Not Allowed CI Actions to serve similar purposes.

Procedure


  1. A CI Action is defined
    -- In an OOB instance, the "CreateTask" mentioned in the reference qualifier is the CI Action. Its name is "CreateTask" and its description is "Create a Task for the involved CI"
    2. A Not Allowed CI Action is defined
    -- The Not Allowed CI Action is "CreateTask", applies to CI Type "Configuration Item [cmdb_ci]" and whose Operational Status is "Retired"
    3. The reference qualifier calls the "OpsStatusFilter" script include
    -- The script include queries the "Not Allowed CI Action [statemgmt_not_allow_actions]" table for any records whose CI Type and Not Allowed Action matches the values passed ("cmdb_ci" and "CreateTask", respectively, in this case) and returns the Operation Status ("Retired" in this case)
    -- The result of this is that any CMDB CI that has an Operational Status of "Retired" will be filtered out of the choices available for the "cmdb_ci" field on the task record

 

Additional Information


Define a CI action

Define a not-allowed CI action


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.