Enable Metrics and State Duration in Case table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Hi,
I want to create a metric for reporting on Case State Duration, but while defining the metric for the Customer Case and Technical Case tables, I’m unable to select the table values.
Is there a way to enable metric definition for these tables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 3 hours ago
For the Customer Case table, set your Application Scope to 'Customer Service', then create the metric. I don't have the Technical Case table to test, but the solution is probable the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
25m ago
Hi @UtsavDattani,
Step-by-step: Enable Metrics for CSM Case tables
Go to:
System Definition → TablesOpen the table record:
sn_customerservice_case (Customer Case)
sn_customerservice_technical_case (Technical Case)
Check the field:
Extensible or Metric tracking (depends on version — in Yokohama it’s “Metric tracking”).Enable it:
Tick ✅ Metric tracking enabled
Save the record
This flag adds the hidden metric infrastructure needed for that table.
Reload Metric Definition form:
Now when you go to Metric Definitions → New,
you should be able to select those tables from the Table dropdown.
(Optional) If you still don’t see them:
Navigate to System Definition → Tables & Columns
Open the same table → Check the Extensible box as well.
Save and reload again.
⚙️ How it works
ServiceNow stores metrics in the metric_instance and metric_definition tables, but it only generates those when the target table has metric tracking enabled.
Without that flag, metric definitions simply hide the table.
🧠 Extra Tip
If you plan to track state durations, use:
Field: state
Type: Duration
Calculation: Time in State
That will let you build reports like “Average time a Case stays in ‘Awaiting Customer’.”