closing all the metric records

Imran4
Tera Contributor

Hi Team,

I am having a requirement in the CSM module. 

I want to capture all the Metric instances when the case state changed from Active to False. So, I have created a Async BR with all the Metric Definitions stored in the property. It is updating all the records sometimes and leaving few records in the very next attempt. The BR wasn't able to update all Metric Instances and leaving the very recently created when the state changes to active to false. I tried Script Include calling from the BR but failed abruptly. I have tried Scheduled Job which will trigger via After BR and it is working totally fine as expected. But my architect isn't allowing me to go through this approach. I have checked all the OOTB things but no luck. It would be great if there is any other way to proceed further or any enhancements are required to fix this issue. Thank you.

9 REPLIES 9

Tanushree Maiti
Kilo Patron

Hi @Imran4 

 

1. Enable Metrics for Case Tables :
  1. Go to:
    System Definition → Tables

  2. Open the table record:

    • sn_customerservice_case (Customer Case)

    • sn_customerservice_technical_case (Technical Case)

  3. Check the field:
    Extensible or Metric tracking (depends on version — in Yokohama it’s “Metric tracking”).

  4. Enable it:

    • Tick on

       Metric tracking enabled

    • Save the record

    This flag adds the hidden metric infrastructure needed for that table.

  5. Reload Metric Definition form:

    • Now when you go to Metric Definitions → New,
      you should be able to select those tables from the Table dropdown.

 

Once the definition(s) are created, you can report on the captured data.

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

Hi @Tanushree Maiti ,

Sorry, it didn't solve my issue. I am not able to find the table even after making it extensible. I would like to hear response from you. Thank you.

Hi @Imran4 ,

 

Metrics is already configured "In the base system, metrics are configured to work on the task table only."  

Note; for non-task table , it needs to configure using BR etc. Check this post

 

sn_customerservice_case table is extended from task table.

 

In Zurich PDI, I  added Metrics Related list in case (sn_customerservice_case) record and  Added a Case record and closed it.

In the Case ->Metrics list it is showing data correctly. Check this screen shot.

 

Screenshot 2026-03-19 161358.jpg

 

 

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

Hi @Tanushree Maiti ,

Case table is extended from the Task table in my scenario. Creating a BR is working fine for some time and failing abruptly in other cases. So, I am expecting a way to fix this issue. Thank you.