Find out if and where record is referenced in entire application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2015 11:42 AM
Is there an easy way to find out if a record is referenced anywhere in ServiceNow?
For instance, if I have a CI called "ABC", is there a trivial way to see if any records in ServiceNow have a reference to that record. I.e, any changes, problems, incidents, custom applications, etc?
Thanks!
- Labels:
-
Analytics and Reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2015 11:56 AM
Is the global search box at the top right corner not pulling all the information that you're looking for? If not the search groups can be edited to include more tables that may not be searched by default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2015 11:59 AM
Thanks for the response Joe. I was looking to do this in a scripting manor, since I am checking hundreds of thousands of CI's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2015 07:16 AM
Greg,
It depends on what you need to do. We recently went through (via scripting) and changed all "old" usernames to reflect a new username. It was a pain and didn't work perfectly, but it did what we needed it to do.
If you haven't looked into it yet, you might try adding related lists to the cmdb_ci forms. Of course, there are a lot of tables, so that could be problematic.
On each of our cmdb_ci table forms (business service, application, switch, routers, etc, etc) we have added "CI Relations" to the forms. I thought this was OOB, but may have been done after we got SN (We were pre-Aspen). You can choose how many levels you want to view. If you only want to see what is DIRECLTY related to a specific CI, choose one level. For us, we show three levels by default. If it is not an option to add to the form, first be sure there is some sort of relationship already built between the item you're looking at and something else. If you have relationships and it still doesnt' show up, you may need to build a formatter called CI Relations, then add it.
Another way to use scripting, would be to use the cmdb_ci_rel table. Look for the target items in both parent and child fileds. That should show you all upstream and downstream (respectively) items tied to a specifc CI. However, this only shows one level different. To get more levels than that, you would need to dot.walk.
I'm going through something similar right now, as we are updating our Business Services, and the other items below that. In order to preserve data, I've had to do some research on how to find this info. I hope my pain helps you get through your adventure.
~Lindsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 06:54 AM
This works GREAT. Hope it helps...
http://www.servicenowguru.com/system-definition/find-references-specific-record/
Works on just about any record, here's a sample result when I ran it to find references to a group: