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 hide extended-table records from base-table list views - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to hide extended-table records from base-table list views
KB0719142

How to hide extended-table records from base-table list views


4175 Views Last updated : Jan 15, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

This article focuses on how to load only those set of records in the list view that are explicitly defined on base-tables.

Release

  All Releases

Resolution

  

For each base table, there is a column/field/dictionary called sys_class_name that shows the table name for each record created:

  • This field shows the name of the table where this record is defined (on child table or parent table or base table).
  • This field can act as a key for filtering the records.

The following example demonstrates this:

  •  
  • Create before-query business rule on a table let's say, task with the following script:
    (function executeRule(current, previous /*null when async*/) {
    // Add your code here
    current.addQuery('sys_class_name', 'task');
    })(current, previous);
  • The above script will show only those records that are explicitly created at task table (filtering out records from incident, problem, etc.)
  • One caveat here is that this will not just impact the list view (of task table) but on all aspects through which this table is queried.

You can also create a default filter that will run whenever the list is loaded.

Related Links

This is kind of a custom behavior and it all depends on respective data integrity. It will break otherwise.

Set a predefined filter as result: Set a predefined filter as default

Default before-query business rule: Before Query business rules

Instance Customization FAQs and Guidelines: Customization vs configuration | FAQ and guidelines


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.