Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

I would like to configure the CMDB Health Dashboard to display only the principal classes.

AhmerFaraz0001
Tera Contributor

I would like to configure the CMDB Health Dashboard to display only the principal classes.

3 REPLIES 3

Tanushree Maiti
Kilo Patron

Hi @AhmerFaraz0001 

 

Step by step instruction is given in this post :

https://www.servicenow.com/community/itom-forum/cmdb-health-dashboard-and-discovery-include-only-pri...

 

 

  • Go to CI Class Manager → Configuration Items → Health → Inclusion Rules.
  • Create a new rule for cmdb_ci with the required metrics, then save it.
    • Right-click on Inclusion Condition and choose Configure Dictionary.
    • In the Attributes field, enter condition_builder= v2 without quotes) and save.
    • Return to the inclusion rule you just created.
  • For each rule, do the following:
    • Double-click Inclusion Condition to open SN Utils.
    • Replace the existing value with:       

                           sys_class_nameINjavascript:new PrincipalClass().getPrincipalClasses()

  • SN Utils is helpful here because it allows you to leave the condition operator empty.
    • Add any additional conditions (such as install status exclusions) based on your requirements.

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

The step‑by‑step instructions make this configuration very straightforward to implement. Using

sys_class_nameINjavascript:new PrincipalClass().getPrincipalClasses()

is a clean and effective approach, and the additional guidance around enabling condition_builder=v2 and using SN Utils removes a lot of ambiguity.

Really appreciate you taking the time to document this so clearly—this will be very helpful for anyone looking to restrict CMDB Health to Principal Classes while staying aligned with best practices.

I am getting the filter as shown in the image below.

AhmerFaraz0001_0-1777290337232.png