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.

Need to create a database view based on Incident table and Metric instance created on Incident table

rog
Giga Contributor

HI,

I have a requirement to create a database view based on Incident table and Metric instance created on Incident table. The metric instance is based on the state field on the incident table.

So basically I need to create a database view report to get all the fields from incident table like assignment group, assigned to, opened etc and also the state change details from the metric report.

Please let me know how to create a database view for the same.

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Yes we can, and for that as well we have an OOB database view - just type in '*incident' with which you can filter out them.

find_real_file.png

Hopefully, ServiceNow made it easy from their OOB options

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

View solution in original post

9 REPLIES 9

Adam Stout
ServiceNow Employee
ServiceNow Employee

If you joined metrics to incidents and SLAs you would have to make sure you only get one SLA since this would create lots of records that looked like metrics.

Yes we can, and for that as well we have an OOB database view - just type in '*incident' with which you can filter out them.

find_real_file.png

Hopefully, ServiceNow made it easy from their OOB options

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

rog
Giga Contributor

Thanks for the reply.

 

The requirement here is that we need to join the metric to incident and SLA. So that we have the details about state change, and also details of SLA like breach time, has breached etc.

Adam Stout
ServiceNow Employee
ServiceNow Employee

You can create a new join, but be very careful as if you pick more than one SLA or metric to look at, you'll see duplicates which you'll need to handle.

Jon Perkis
Kilo Explorer

God Bless YOU!!! šŸ™‚ It's what i need šŸ™‚ i tried to find it like 2 mounth and i get it šŸ˜› Thank you