Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Create Metrics on Interactions

javierjagui
Tera Contributor

Hi, 

 

Does anyone know if Metrics based on interactions work?  

 

I see the Interaction table as an option when I create the metric, but for some reason it is not creating metric instances. I have metrics created for Incidents, Incident Tasks, and other tables, so I know the module is working.

 

I'm wondering if there is a system property that has to be enabled or something similar.

 

Thank you 

1 ACCEPTED SOLUTION

Chaitanya ILCR
Mega Patron

Hi @javierjagui ,

OOB Metrics only work with task extended table 

interaction is not a task extended table

 

open the BR named Metric events

simply change the table to interaction and insert and stay

ChaitanyaILCR_0-1749743052590.png

 

refer below blog for creation of metrics for non task tables

https://www.servicenow.com/community/developer-articles/metrics-on-non-task-tables/ta-p/2308846

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @javierjagui 

Metrics work only on new records, so if you’re expecting them on old records, they won’t show.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

javierjagui
Tera Contributor

No, I'm not expecting metric instances to show on old records. I've been creating new interactions after I created the metric, but no instances are being created. 

Chaitanya ILCR
Mega Patron

Hi @javierjagui ,

OOB Metrics only work with task extended table 

interaction is not a task extended table

 

open the BR named Metric events

simply change the table to interaction and insert and stay

ChaitanyaILCR_0-1749743052590.png

 

refer below blog for creation of metrics for non task tables

https://www.servicenow.com/community/developer-articles/metrics-on-non-task-tables/ta-p/2308846

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

As the blog post explains, creating a duplicate of the business rule "metrics events" and setting the table field to the table you want to create metrics, worked.

 

THANKS A LOT!!